summaryrefslogtreecommitdiff
path: root/arch/ia64/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-02 00:56:35 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-02 00:56:35 +0400
commita57d985e378ca69f430b85852e4187db3698a89e (patch)
tree01fbc23313959d20fcd4e7385ef5a056b47c1828 /arch/ia64/include
parentcdeb9b014331af4282be522824e36f3aa33f0671 (diff)
parent39c9a4ab2b91bff26801c86e423ef07fb705b3c0 (diff)
downloadlinux-a57d985e378ca69f430b85852e4187db3698a89e.tar.xz
Merge tag 'please-pull-ia64-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
Pull ia64 update from Tony Luck: "Usual mish-mash of ia64 fixes for next merge window" * tag 'please-pull-ia64-for-3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux: [IA64] xen: Fix return value check in xencomm_vtop() [IA64] Must enable interrupts in do_notify_resume_user before calling tracehook_notify_resume() [IA64] kexec: Move the dereference below the NULL test [IA64] Fix a node distance bug
Diffstat (limited to 'arch/ia64/include')
-rw-r--r--arch/ia64/include/asm/numa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/numa.h b/arch/ia64/include/asm/numa.h
index 6a8a27cfae3e..2e27ef175652 100644
--- a/arch/ia64/include/asm/numa.h
+++ b/arch/ia64/include/asm/numa.h
@@ -59,7 +59,7 @@ extern struct node_cpuid_s node_cpuid[NR_CPUS];
*/
extern u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
-#define node_distance(from,to) (numa_slit[(from) * num_online_nodes() + (to)])
+#define node_distance(from,to) (numa_slit[(from) * MAX_NUMNODES + (to)])
extern int paddr_to_nid(unsigned long paddr);