]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/mm/numa.c
powerpc: Fix build on some non-freescale platforms
[~andy/linux] / arch / powerpc / mm / numa.c
index c0189c169bbbea27ed06e7bb4bbaef7316608565..3feefc3842a85471ae33c03307d4ad2907894856 100644 (file)
@@ -58,7 +58,7 @@ static int distance_lookup_table[MAX_NUMNODES][MAX_DISTANCE_REF_POINTS];
  * Allocate node_to_cpumask_map based on number of available nodes
  * Requires node_possible_map to be valid.
  *
- * Note: node_to_cpumask() is not valid until after this is done.
+ * Note: cpumask_of_node() is not valid until after this is done.
  */
 static void __init setup_node_to_cpumask_map(void)
 {
@@ -501,7 +501,7 @@ static int of_get_assoc_arrays(struct device_node *memory,
        aa->n_arrays = *prop++;
        aa->array_sz = *prop++;
 
-       /* Now that we know the number of arrrays and size of each array,
+       /* Now that we know the number of arrays and size of each array,
         * revalidate the size of the property read in.
         */
        if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int))
@@ -1440,7 +1440,7 @@ int arch_update_cpu_topology(void)
 {
        int cpu, nid, old_nid;
        unsigned int associativity[VPHN_ASSOC_BUFSIZE] = {0};
-       struct sys_device *sysdev;
+       struct device *dev;
 
        for_each_cpu(cpu,&cpu_associativity_changes_mask) {
                vphn_get_associativity(cpu, associativity);
@@ -1461,9 +1461,9 @@ int arch_update_cpu_topology(void)
                register_cpu_under_node(cpu, nid);
                put_online_cpus();
 
-               sysdev = get_cpu_sysdev(cpu);
-               if (sysdev)
-                       kobject_uevent(&sysdev->kobj, KOBJ_CHANGE);
+               dev = get_cpu_device(cpu);
+               if (dev)
+                       kobject_uevent(&dev->kobj, KOBJ_CHANGE);
        }
 
        return 1;