Skip to content

Commit

Permalink
workqueue: add missing __percpu markup in kernel/workqueue.c
Browse files Browse the repository at this point in the history
works in schecule_on_each_cpu() is a percpu pointer but was missing
__percpu markup.  Add it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Namhyung Kim authored and Tejun Heo committed Aug 8, 2010
1 parent 2d53056 commit 38f5156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ EXPORT_SYMBOL(schedule_delayed_work_on);
int schedule_on_each_cpu(work_func_t func)
{
int cpu;
struct work_struct *works;
struct work_struct __percpu *works;

works = alloc_percpu(struct work_struct);
if (!works)
Expand Down

0 comments on commit 38f5156

Please sign in to comment.