From 14b0886b043fab90050f26bee9ea0ead073f1f2b Mon Sep 17 00:00:00 2001 From: Shiju Mathew Date: Tue, 30 Dec 2014 14:59:23 -0500 Subject: thermal-core: Add separate threads for sysfs notify Add separate threads for sysfs notify. This is required so that any thermal trip is not blocked while handling sysfs notify. Change-Id: Ifee206c29fd1b3c226a342b7f048250d5062397e Signed-off-by: Shiju Mathew [imaund@codeaurora.org: Resolved context conflicts and updated a call of INIT_COMPLETION to reinit_completion] Signed-off-by: Ian Maund --- include/linux/thermal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux') diff --git a/include/linux/thermal.h b/include/linux/thermal.h index af10c703601b..34016d986815 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -173,6 +173,8 @@ struct sensor_info { struct list_head threshold_list; struct mutex lock; struct work_struct work; + struct task_struct *sysfs_notify_thread; + struct completion sysfs_notify_complete; }; /** -- cgit v1.2.3