android_kernel_xiaomi_sm8350/drivers/powercap
Adam Lessnau edbdabc623 powercap/RAPL: prevent overridding bits outside of the mask
Fixes wrong bits shift operation in the rapl_write_data_raw function, which
might cause overridding bits outside of the mask.

For example, writing new TIME_WINDOW1 value can override POWER_LIMIT1.

Signed-off-by: Adam Lessnau <adam.lessnau@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2017-06-28 00:38:34 +02:00
..
intel_rapl.c powercap/RAPL: prevent overridding bits outside of the mask 2017-06-28 00:38:34 +02:00
Kconfig
Makefile
powercap_sys.c