x86/acpi: Use proper macro for invalid node
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 12 Dec 2016 19:29:52 +0000 (14:29 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Dec 2016 10:32:32 +0000 (11:32 +0100)
Use NUMA_NO_NODE instead of -1.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: len.brown@intel.com
Cc: rjw@rjwysocki.net
Cc: linux-acpi@vger.kernel.org
Cc: pavel@ucw.cz
Link: http://lkml.kernel.org/r/1481570993-13941-1-git-send-email-boris.ostrovsky@oracle.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/acpi/boot.c

index 4764fa56924d200c724473a1c02a9823b56b5912..6f65b0eed384c6b276d26b44aeb0c535d6b9db3e 100644 (file)
@@ -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);
        }