From f0be5508c053cf1922b63a64b3918fd4882f4bba Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Thu, 8 May 2008 13:40:17 +0900 Subject: [PATCH] --- yaml --- r: 96296 b: refs/heads/master c: 1e0f50ae11ab5838009994a3266accc1319c90d9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-sh/topology.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 2c99464d01f6..c5166ac62e81 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4370fe1c06ffa251b63b12a41e2599037a4b7f87 +refs/heads/master: 1e0f50ae11ab5838009994a3266accc1319c90d9 diff --git a/trunk/include/asm-sh/topology.h b/trunk/include/asm-sh/topology.h index 34cdb28e8f44..95f0085e098a 100644 --- a/trunk/include/asm-sh/topology.h +++ b/trunk/include/asm-sh/topology.h @@ -29,6 +29,17 @@ .nr_balance_failed = 0, \ } +#define cpu_to_node(cpu) ((void)(cpu),0) +#define parent_node(node) ((void)(node),0) + +#define node_to_cpumask(node) ((void)node, cpu_online_map) +#define node_to_first_cpu(node) ((void)(node),0) + +#define pcibus_to_node(bus) ((void)(bus), -1) +#define pcibus_to_cpumask(bus) (pcibus_to_node(bus) == -1 ? \ + CPU_MASK_ALL : \ + node_to_cpumask(pcibus_to_node(bus)) \ + ) #endif #include