diff options
author | Jianguo Wu <wujianguo@huawei.com> | 2013-08-30 09:25:40 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-09-24 01:40:38 +0200 |
commit | 1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5 (patch) | |
tree | 1a4677685754ff7f3350aaaeb644613098a7905b /drivers/acpi/numa.c | |
parent | 4a10c2ac2f368583138b774ca41fac4207911983 (diff) | |
download | op-kernel-dev-1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5.zip op-kernel-dev-1bb25df0fde2cdb2f250a7e7e43c2ec1ba65d0f5.tar.gz |
ACPI / mm: use NUMA_NO_NODE
Use more appropriate NUMA_NO_NODE instead of -1
Signed-off-by: Jianguo Wu <wujianguo@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/numa.c')
-rw-r--r-- | drivers/acpi/numa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 2e82e5d..a2343a1 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -73,7 +73,7 @@ int acpi_map_pxm_to_node(int pxm) { int node = pxm_to_node_map[pxm]; - if (node < 0) { + if (node == NUMA_NO_NODE) { if (nodes_weight(nodes_found_map) >= MAX_NUMNODES) return NUMA_NO_NODE; node = first_unset_node(nodes_found_map); @@ -334,7 +334,7 @@ int acpi_get_pxm(acpi_handle h) int acpi_get_node(acpi_handle *handle) { - int pxm, node = -1; + int pxm, node = NUMA_NO_NODE; pxm = acpi_get_pxm(handle); if (pxm >= 0 && pxm < MAX_PXM_DOMAINS) |