summaryrefslogtreecommitdiff
path: root/drivers/hwmon/k10temp.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-02-16 16:02:38 +0300
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-02-16 19:18:33 +0300
commit2c6315da6a1657a49e03970a4084dc3d1958ad70 (patch)
treee2b8f4639578e4f81e9371778c6f45faabe3c87e /drivers/hwmon/k10temp.c
parentd5622f5b6c4671d1588ccc9056705366d4eb312a (diff)
downloadlinux-2c6315da6a1657a49e03970a4084dc3d1958ad70.tar.xz
hwmon: (jc42) do not allow writing to locked registers
On systems where the temperature sensor is actually used, the BIOS is likely to have locked the alarm registers. In that case, all writes through the corresponding sysfs files would be silently ignored. To prevent this, detect the locks and make the affected sysfs files read-only. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Cc: stable@kernel.org Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/k10temp.c')
0 files changed, 0 insertions, 0 deletions