]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/parisc/kernel/topology.c
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
[karo-tx-linux.git] / arch / parisc / kernel / topology.c
index ac2a40681414277392c805644e0f7ae3b93306e5..d71cb018a21e0466a22f30fe25bc7e0cf49850c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * arch/parisc/kernel/topology.c - Populate driverfs with topology information
+ * arch/parisc/kernel/topology.c - Populate sysfs with topology information
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include <linux/init.h>
 #include <linux/smp.h>
 #include <linux/cpu.h>
+#include <linux/cache.h>
 
-static struct cpu cpu_devices[NR_CPUS];
+static struct cpu cpu_devices[NR_CPUS] __read_mostly;
 
 static int __init topology_init(void)
 {
-       struct node *parent = NULL;
        int num;
 
        for_each_present_cpu(num) {
-               register_cpu(&cpu_devices[num], num, parent);
+               register_cpu(&cpu_devices[num], num);
        }
        return 0;
 }