From: Eric Dumazet Date: Wed, 3 Aug 2011 17:59:04 +0000 (-0400) Subject: watchdog: Make the kthreads NUMA affine X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18e5a45db30e0e338cdd663eda05a8288cc14fa5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Don Zickus Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/1312394344-18815-1-git-send-email-dzickus@redhat.com Signed-off-by: Ingo Molnar --- 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) /* create the watchdog thread */ if (!p) { - p = kthread_create(watchdog, (void *)(unsigned long)cpu, "watchdog/%d", cpu); + p = kthread_create_on_node(watchdog, NULL, cpu_to_node(cpu), "watchdog/%d", cpu); if (IS_ERR(p)) { printk(KERN_ERR "softlockup watchdog for %i failed\n", cpu); if (!err) {