vserver 1.9.5.x5
[linux-2.6.git] / include / linux / cpu.h
index 2c3d97f..fe0298e 100644 (file)
 
 struct cpu {
        int node_id;            /* The node which contains the CPU */
+       int no_control;         /* Should the sysfs control file be created? */
        struct sys_device sysdev;
 };
 
 extern int register_cpu(struct cpu *, int, struct node *);
+#ifdef CONFIG_HOTPLUG_CPU
+extern void unregister_cpu(struct cpu *, struct node *);
+#endif
 struct notifier_block;
 
 #ifdef CONFIG_SMP
@@ -73,7 +77,7 @@ int cpu_down(unsigned int cpu);
 #define hotcpu_notifier(fn, pri)
 
 /* CPUs don't go offline once they're online w/o CONFIG_HOTPLUG_CPU */
-#define cpu_is_offline(cpu) 0
+static inline int cpu_is_offline(int cpu) { return 0; }
 #endif
 
 #endif /* _LINUX_CPU_H_ */