diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-30 11:10:12 -0400 |
commit | 24a77daf3d80bddcece044e6dc3675e427eef3f3 (patch) | |
tree | 2c5e0b0bea394d6fe62c5d5857c252e83e48ac48 /arch/powerpc/mm/numa.c | |
parent | e389f9aec689209724105ae80a6c91fd2e747bc9 (diff) | |
parent | f900e9777fc9b65140cb9570438597bc8fae56ab (diff) |
Merge branch 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'for-2.6.22' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (255 commits)
[POWERPC] Remove dev_dbg redefinition in drivers/ps3/vuart.c
[POWERPC] remove kernel module option for booke wdt
[POWERPC] Avoid putting cpu node twice
[POWERPC] Spinlock initializer cleanup
[POWERPC] ppc4xx_sgdma needs dma-mapping.h
[POWERPC] arch/powerpc/sysdev/timer.c build fix
[POWERPC] get_property cleanups
[POWERPC] Remove the unused HTDMSOUND driver
[POWERPC] cell: cbe_cpufreq cleanup and crash fix
[POWERPC] Declare enable_kernel_spe in a header
[POWERPC] Add dt_xlate_addr() to bootwrapper
[POWERPC] bootwrapper: CONFIG_ -> CONFIG_DEVICE_TREE
[POWERPC] Don't define a custom bd_t for Xilixn Virtex based boards.
[POWERPC] Add sane defaults for Xilinx EDK generated xparameters files
[POWERPC] Add uartlite boot console driver for the zImage wrapper
[POWERPC] Stop using ppc_sys for Xilinx Virtex boards
[POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
[POWERPC] Merge common virtex header files
[POWERPC] Rework Kconfig dependancies for Xilinx Virtex ppc405 platform
[POWERPC] Clean up cpufreq Kconfig dependencies
...
Diffstat (limited to 'arch/powerpc/mm/numa.c')
-rw-r--r-- | arch/powerpc/mm/numa.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index e86c37c82cfd..b3a592b25ab3 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c | |||
@@ -74,7 +74,7 @@ static struct device_node * __cpuinit find_cpu_node(unsigned int cpu) | |||
74 | 74 | ||
75 | while ((cpu_node = of_find_node_by_type(cpu_node, "cpu")) != NULL) { | 75 | while ((cpu_node = of_find_node_by_type(cpu_node, "cpu")) != NULL) { |
76 | /* Try interrupt server first */ | 76 | /* Try interrupt server first */ |
77 | interrupt_server = get_property(cpu_node, | 77 | interrupt_server = of_get_property(cpu_node, |
78 | "ibm,ppc-interrupt-server#s", &len); | 78 | "ibm,ppc-interrupt-server#s", &len); |
79 | 79 | ||
80 | len = len / sizeof(u32); | 80 | len = len / sizeof(u32); |
@@ -85,7 +85,7 @@ static struct device_node * __cpuinit find_cpu_node(unsigned int cpu) | |||
85 | return cpu_node; | 85 | return cpu_node; |
86 | } | 86 | } |
87 | } else { | 87 | } else { |
88 | reg = get_property(cpu_node, "reg", &len); | 88 | reg = of_get_property(cpu_node, "reg", &len); |
89 | if (reg && (len > 0) && (reg[0] == hw_cpuid)) | 89 | if (reg && (len > 0) && (reg[0] == hw_cpuid)) |
90 | return cpu_node; | 90 | return cpu_node; |
91 | } | 91 | } |
@@ -97,7 +97,7 @@ static struct device_node * __cpuinit find_cpu_node(unsigned int cpu) | |||
97 | /* must hold reference to node during call */ | 97 | /* must hold reference to node during call */ |
98 | static const int *of_get_associativity(struct device_node *dev) | 98 | static const int *of_get_associativity(struct device_node *dev) |
99 | { | 99 | { |
100 | return get_property(dev, "ibm,associativity", NULL); | 100 | return of_get_property(dev, "ibm,associativity", NULL); |
101 | } | 101 | } |
102 | 102 | ||
103 | /* Returns nid in the range [0..MAX_NUMNODES-1], or -1 if no useful numa | 103 | /* Returns nid in the range [0..MAX_NUMNODES-1], or -1 if no useful numa |
@@ -179,7 +179,7 @@ static int __init find_min_common_depth(void) | |||
179 | * configuration (should be all 0's) and the second is for a normal | 179 | * configuration (should be all 0's) and the second is for a normal |
180 | * NUMA configuration. | 180 | * NUMA configuration. |
181 | */ | 181 | */ |
182 | ref_points = get_property(rtas_root, | 182 | ref_points = of_get_property(rtas_root, |
183 | "ibm,associativity-reference-points", &len); | 183 | "ibm,associativity-reference-points", &len); |
184 | 184 | ||
185 | if ((len >= 1) && ref_points) { | 185 | if ((len >= 1) && ref_points) { |
@@ -201,8 +201,8 @@ static void __init get_n_mem_cells(int *n_addr_cells, int *n_size_cells) | |||
201 | if (!memory) | 201 | if (!memory) |
202 | panic("numa.c: No memory nodes found!"); | 202 | panic("numa.c: No memory nodes found!"); |
203 | 203 | ||
204 | *n_addr_cells = prom_n_addr_cells(memory); | 204 | *n_addr_cells = of_n_addr_cells(memory); |
205 | *n_size_cells = prom_n_size_cells(memory); | 205 | *n_size_cells = of_n_size_cells(memory); |
206 | of_node_put(memory); | 206 | of_node_put(memory); |
207 | } | 207 | } |
208 | 208 | ||
@@ -308,9 +308,9 @@ static void __init parse_drconf_memory(struct device_node *memory) | |||
308 | int nid, default_nid = 0; | 308 | int nid, default_nid = 0; |
309 | unsigned int start, ai, flags; | 309 | unsigned int start, ai, flags; |
310 | 310 | ||
311 | lm = get_property(memory, "ibm,lmb-size", &ls); | 311 | lm = of_get_property(memory, "ibm,lmb-size", &ls); |
312 | dm = get_property(memory, "ibm,dynamic-memory", &ld); | 312 | dm = of_get_property(memory, "ibm,dynamic-memory", &ld); |
313 | aa = get_property(memory, "ibm,associativity-lookup-arrays", &la); | 313 | aa = of_get_property(memory, "ibm,associativity-lookup-arrays", &la); |
314 | if (!lm || !dm || !aa || | 314 | if (!lm || !dm || !aa || |
315 | ls < sizeof(unsigned int) || ld < sizeof(unsigned int) || | 315 | ls < sizeof(unsigned int) || ld < sizeof(unsigned int) || |
316 | la < 2 * sizeof(unsigned int)) | 316 | la < 2 * sizeof(unsigned int)) |
@@ -404,10 +404,10 @@ static int __init parse_numa_properties(void) | |||
404 | const unsigned int *memcell_buf; | 404 | const unsigned int *memcell_buf; |
405 | unsigned int len; | 405 | unsigned int len; |
406 | 406 | ||
407 | memcell_buf = get_property(memory, | 407 | memcell_buf = of_get_property(memory, |
408 | "linux,usable-memory", &len); | 408 | "linux,usable-memory", &len); |
409 | if (!memcell_buf || len <= 0) | 409 | if (!memcell_buf || len <= 0) |
410 | memcell_buf = get_property(memory, "reg", &len); | 410 | memcell_buf = of_get_property(memory, "reg", &len); |
411 | if (!memcell_buf || len <= 0) | 411 | if (!memcell_buf || len <= 0) |
412 | continue; | 412 | continue; |
413 | 413 | ||
@@ -725,7 +725,7 @@ int hot_add_scn_to_nid(unsigned long scn_addr) | |||
725 | const unsigned int *memcell_buf; | 725 | const unsigned int *memcell_buf; |
726 | unsigned int len; | 726 | unsigned int len; |
727 | 727 | ||
728 | memcell_buf = get_property(memory, "reg", &len); | 728 | memcell_buf = of_get_property(memory, "reg", &len); |
729 | if (!memcell_buf || len <= 0) | 729 | if (!memcell_buf || len <= 0) |
730 | continue; | 730 | continue; |
731 | 731 | ||