OpenCloudOS-Kernel/arch/arm/boot
Douglas Anderson 8ef1ba39a9 ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend
This is similar to commit e6186820a7 ("arm64: dts: rockchip: Arch
counter doesn't tick in system suspend").  Specifically on the rk3288
it can be seen that the timer stops ticking in suspend if we end up
running through the "osc_disable" path in rk3288_slp_mode_set().  In
that path the 24 MHz clock will turn off and the timer stops.

To test this, I ran this on a Chrome OS filesystem:
  before=$(date); \
  suspend_stress_test -c1 --suspend_min=30 --suspend_max=31; \
  echo ${before}; date

...and I found that unless I plug in a device that requests USB wakeup
to be active that the two calls to "date" would show that fewer than
30 seconds passed.

NOTE: deep suspend (where the 24 MHz clock gets disabled) isn't
supported yet on upstream Linux so this was tested on a downstream
kernel.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2019-05-22 10:02:47 +02:00
..
bootp ARM: 8844/1: use unified assembler in assembly files 2019-02-26 11:26:07 +00:00
compressed ARM: 8857/1: efi: enable CP15 DMB instructions before cleaning the cache 2019-04-23 17:28:37 +01:00
dts ARM: dts: rockchip: Mark that the rk3288 timer might stop in suspend 2019-05-22 10:02:47 +02:00
.gitignore
Makefile kbuild: remove redundant target cleaning on failure 2019-01-06 09:46:51 +09:00
deflate_xip_data.sh
install.sh