]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86,percpu: fix inverted NUMA test in setup_pcpu_remap()
authorTejun Heo <tj@kernel.org>
Wed, 1 Apr 2009 06:06:33 +0000 (15:06 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 2 Apr 2009 04:08:05 +0000 (06:08 +0200)
setup_percpu_remap() is for NUMA machines yet it bailed out with
-EINVAL if pcpu_need_numa().  Fix the inverted condition.

This problem was reported by David Miller and verified by Yinhai Lu.

Reported-by: David Miller <davem@davemloft.net>
Reported-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
LKML-Reference: <49D30469.8020006@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_percpu.c

index 400331b50a53f0838c407a8b688bcb8d6f686087..876b1271c1dca63a15f03e6f11a1139410a2bcc6 100644 (file)
@@ -162,7 +162,7 @@ static ssize_t __init setup_pcpu_remap(size_t static_size)
         * If large page isn't supported, there's no benefit in doing
         * this.  Also, on non-NUMA, embedding is better.
         */
-       if (!cpu_has_pse || pcpu_need_numa())
+       if (!cpu_has_pse || !pcpu_need_numa())
                return -EINVAL;
 
        last = NULL;