Thermal: Introduce locking for cdev.thermal_instances list.
[linux-2.6.git] / include / linux / thermal.h
index ded26f0..5b176ac 100644 (file)
@@ -95,6 +95,7 @@ struct thermal_cooling_device {
        void *devdata;
        const struct thermal_cooling_device_ops *ops;
        bool updated; /* true if the cooling device does not need update */
+       struct mutex lock; /* protect thermal_instances list */
        struct list_head thermal_instances;
        struct list_head node;
 };