diff options
author | Austin Zhang <austin.zhang@intel.com> | 2013-10-29 16:18:07 +0800 |
---|---|---|
committer | Yin Kangkai <kangkai.yin@linux.intel.com> | 2013-12-26 22:33:58 +0800 |
commit | 6257f6fa00fcaeb4e1c204c1a9638f4463f757b3 (patch) | |
tree | 34b33b149867a0c57992adf5ce9ee78587c54f55 /include | |
parent | f5236b4eea59bf63d4c5ba3ca76508fd33a6cd23 (diff) | |
download | kernel-clovertrail-6257f6fa00fcaeb4e1c204c1a9638f4463f757b3.tar.gz kernel-clovertrail-6257f6fa00fcaeb4e1c204c1a9638f4463f757b3.tar.bz2 kernel-clovertrail-6257f6fa00fcaeb4e1c204c1a9638f4463f757b3.zip |
PM: hwmon: sensor: accelerator: Added screen off notifier callback
Added screen off notifier callback for accelerator, so that this
sensor will be disabled once the screen is off; Otherwise, this
sensor will still wake up processor frequently and spend a lot of
time (so power) to handle its ISR even though the screen is off
but the system is not in suspend status.
Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/accel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/accel.h b/include/linux/accel.h index 578025b4d8c..9e04b176120 100644 --- a/include/linux/accel.h +++ b/include/linux/accel.h @@ -39,6 +39,7 @@ unsigned int poll_inerval; unsigned int g_range; + struct notifier_block screen_notifier; }; struct accel_driver_descr { |