]> err.no Git - linux-2.6/blobdiff - kernel/sched.c
[PATCH] Unchecked alloc_percpu() return in __create_workqueue()
[linux-2.6] / kernel / sched.c
index 6f46c94cc29ea4f46d79eb50b36da77208024df3..92733091154c48e0502732deac9fa2905b3b3a31 100644 (file)
@@ -176,6 +176,13 @@ static unsigned int task_timeslice(task_t *p)
 #define task_hot(p, now, sd) ((long long) ((now) - (p)->last_ran)      \
                                < (long long) (sd)->cache_hot_time)
 
+void __put_task_struct_cb(struct rcu_head *rhp)
+{
+       __put_task_struct(container_of(rhp, struct task_struct, rcu));
+}
+
+EXPORT_SYMBOL_GPL(__put_task_struct_cb);
+
 /*
  * These are the runqueue data structures:
  */