OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc/44x: Adjust indentation in ibm4xx_denali_fixup_memsize
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
kernel
/
workqueue_internal.h
diff --git
a/kernel/workqueue_internal.h
b/kernel/workqueue_internal.h
index
4521587
..
3fa9c14
100644
(file)
--- a/
kernel/workqueue_internal.h
+++ b/
kernel/workqueue_internal.h
@@
-9,6
+9,7
@@
#include <linux/workqueue.h>
#include <linux/kthread.h>
#include <linux/workqueue.h>
#include <linux/kthread.h>
+#include <linux/preempt.h>
struct worker_pool;
struct worker_pool;
@@
-59,7
+60,7
@@
struct worker {
*/
static inline struct worker *current_wq_worker(void)
{
*/
static inline struct worker *current_wq_worker(void)
{
- if (
current->flags & PF_WQ_WORKER
)
+ if (
in_task() && (current->flags & PF_WQ_WORKER)
)
return kthread_data(current);
return NULL;
}
return kthread_data(current);
return NULL;
}