]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: Make sysfs attributes of cooling devices default attributes
authorMatthias Kaehlcke <mka@chromium.org>
Sat, 21 Feb 2015 02:10:08 +0000 (18:10 -0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 5 Mar 2015 05:47:57 +0000 (01:47 -0400)
commit651aca6a4772bedf337e09f536b512bb1ad96e32
tree36c23fa93ef3062dac39b2ebc76cd39ccc324cf6
parentfecc45584a770a8dbcdab7bab43f0460cf496fd0
thermal: Make sysfs attributes of cooling devices default attributes

Default attributes are created when the device is registered. Attributes
created after device registration can lead to race conditions, where user space
(e.g. udev) sees the device but not the attributes.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/thermal_core.c