diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-08-03 13:59:04 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-08-14 05:53:06 -0400 |
commit | 18e5a45db30e0e338cdd663eda05a8288cc14fa5 (patch) | |
tree | 28bec98a1120ccd596a8dd9c06d7a88a3245e73a | |
parent | 7e5b2a01d2ca2eae4ef913b59f84341f9a70e206 (diff) |
watchdog: Make the kthreads NUMA affine
Watchdog kthreads can use kthread_create_on_node() to NUMA affine their
stack and task_struct.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1312394344-18815-1-git-send-email-dzickus@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | kernel/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 36491cd5b7d4..e952a1394d26 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c | |||
@@ -438,7 +438,7 @@ static int watchdog_enable(int cpu) | |||
438 | 438 | ||
439 | /* create the watchdog thread */ | 439 | /* create the watchdog thread */ |
440 | if (!p) { | 440 | if (!p) { |
441 | p = kthread_create(watchdog, (void *)(unsigned long)cpu, "watchdog/%d", cpu); | 441 | p = kthread_create_on_node(watchdog, NULL, cpu_to_node(cpu), "watchdog/%d", cpu); |
442 | if (IS_ERR(p)) { | 442 | if (IS_ERR(p)) { |
443 | printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu); | 443 | printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu); |
444 | if (!err) { | 444 | if (!err) { |