Messages in this thread | | | Date | Wed, 22 Oct 2003 14:58:50 -0700 | Subject | Re: [PATCH] trivial ia64 numa/discontig fixes | From | (Jesse Barnes) |
| |
On Wed, Oct 22, 2003 at 03:46:21PM -0600, Alex Williamson wrote: > --- linux-2.5/arch/ia64/mm/discontig.c Wed Oct 22 15:13:48 2003 > +++ linux-2.5/arch/ia64/mm/discontig.c Wed Oct 22 15:16:42 2003 > @@ -186,7 +186,7 @@ > */ > for (cpu = 0; cpu < NR_CPUS; cpu++) { > if (node == node_cpuid[cpu].nid) { > - memcpy(cpu_data, __phys_per_cpu_start, > + memcpy(__va(cpu_data), __phys_per_cpu_start, > __per_cpu_end-__per_cpu_start); > __per_cpu_offset[cpu] = > (char*)__va(cpu_data) -
If we put the __va() above where cpu_data is set, we can remove it from both places in the loop... Just thought that might be clearer since the other assignments use __va() above.
Jesse - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |