Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-x86power: コミット

hardware/x86power


コミットメタ情報

リビジョン1e8ed5fe566a4af069bb118a90b20c7305d4c7f2 (tree)
日時2019-04-12 17:31:45
作者Valentin Manea <valentin.manea@gmai...>
コミッターChih-Wei Huang

ログメッセージ

Allow to disable offlining of non-boot CPUs

On my Cherrytrail tablet I've been trying to achieve the S0Ix deep sleep
states. After a bit of twiddling I found out that I can achieve the deep
sleep states but I need to disable the power off of the secondary cores
otherwise the resume from sleep causes the device to crash.

The patch uses a property to determine whether to power off the non-boot
CPUs on sleeping.

変更サマリ

差分

--- a/power.c
+++ b/power.c
@@ -74,7 +74,9 @@ static void power_set_interactive(struct power_module *module UNUSED, int on)
7474 }
7575 }
7676
77- set_nonboot_cpu_state(on ? CPU_ONLINE : CPU_OFFLINE);
77+ if (property_get_bool("power.nonboot-cpu-off", 1)) {
78+ set_nonboot_cpu_state(on ? CPU_ONLINE : CPU_OFFLINE);
79+ }
7880 }
7981
8082 static void power_hint(struct power_module *module UNUSED, power_hint_t hint, void *data UNUSED)
旧リポジトリブラウザで表示