commit | edbdabc62328ec0ac98d83ca384bf9fd5251ade6 | [log] [tgz] |
---|---|---|
author | Adam Lessnau <adam.lessnau@intel.com> | Thu Jun 01 11:21:50 2017 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Jun 28 00:38:34 2017 +0200 |
tree | a689a149912e0efc6a87a1d83ec24cccf4a3bb68 | |
parent | c0bc126f97fb929b3ae02c1c62322645d70eb408 [diff] |
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>