]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/sched.h
mm: allow PF_MEMALLOC from softirq context
[karo-tx-linux.git] / include / linux / sched.h
index 865725adb9d3f1b677616ea35ecd924693c06ef4..c147e7024f11f2859d8f648b1abac437bac941f1 100644 (file)
@@ -1894,6 +1894,13 @@ static inline void rcu_copy_process(struct task_struct *p)
 
 #endif
 
+static inline void tsk_restore_flags(struct task_struct *task,
+                               unsigned long orig_flags, unsigned long flags)
+{
+       task->flags &= ~flags;
+       task->flags |= orig_flags & flags;
+}
+
 #ifdef CONFIG_SMP
 extern void do_set_cpus_allowed(struct task_struct *p,
                               const struct cpumask *new_mask);