]> 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)
commite99dfbb7c93c254acd5b1fa414abb4690f337c86
tree36c23fa93ef3062dac39b2ebc76cd39ccc324cf6
parent58c61cc2d79e5025809f35eb6940b1cd7774bb19
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