aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Ostrovsky <[email protected]>2016-12-12 19:29:52 +0000
committerThomas Gleixner <[email protected]>2016-12-15 10:32:32 +0000
commit4370a3ef39f3d07342a1ae9967701bd697c8d9df (patch)
tree930a7967e1d22b22b763c9fa4239a4826d441e90
parentx86/smpboot: Prevent false positive out of bounds cpumask access warning (diff)
downloadkernel-4370a3ef39f3d07342a1ae9967701bd697c8d9df.tar.gz
kernel-4370a3ef39f3d07342a1ae9967701bd697c8d9df.zip
x86/acpi: Use proper macro for invalid node
Use NUMA_NO_NODE instead of -1. Signed-off-by: Boris Ostrovsky <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r--arch/x86/kernel/acpi/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 4764fa56924d..6f65b0eed384 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -715,7 +715,7 @@ int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid)
int nid;
nid = acpi_get_node(handle);
- if (nid != -1) {
+ if (nid != NUMA_NO_NODE) {
set_apicid_to_node(physid, nid);
numa_set_node(cpu, nid);
}