X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fi386%2Fkernel%2Fcpuid.c;h=1d9a4abcdfc71f034c1c822853049280b32de0a2;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=fde8bea85cee82b26ca31a34db989aab39e0a723;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/i386/kernel/cpuid.c b/arch/i386/kernel/cpuid.c index fde8bea85..1d9a4abcd 100644 --- a/arch/i386/kernel/cpuid.c +++ b/arch/i386/kernel/cpuid.c @@ -24,6 +24,7 @@ */ #include +#include #include #include @@ -167,7 +168,6 @@ static int cpuid_class_device_create(int i) return err; } -#ifdef CONFIG_HOTPLUG_CPU static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { unsigned int cpu = (unsigned long)hcpu; @@ -183,11 +183,10 @@ static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long ac return NOTIFY_OK; } -static struct notifier_block __cpuinitdata cpuid_class_cpu_notifier = +static struct notifier_block cpuid_class_cpu_notifier = { .notifier_call = cpuid_class_cpu_callback, }; -#endif /* !CONFIG_HOTPLUG_CPU */ static int __init cpuid_init(void) { @@ -210,7 +209,7 @@ static int __init cpuid_init(void) if (err != 0) goto out_class; } - register_hotcpu_notifier(&cpuid_class_cpu_notifier); + register_cpu_notifier(&cpuid_class_cpu_notifier); err = 0; goto out; @@ -235,7 +234,7 @@ static void __exit cpuid_exit(void) class_device_destroy(cpuid_class, MKDEV(CPUID_MAJOR, cpu)); class_destroy(cpuid_class); unregister_chrdev(CPUID_MAJOR, "cpu/cpuid"); - unregister_hotcpu_notifier(&cpuid_class_cpu_notifier); + unregister_cpu_notifier(&cpuid_class_cpu_notifier); } module_init(cpuid_init);