Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31873
b: refs/heads/master
c: b6a7c79
h: refs/heads/master
i:
  31871: 2ab77a8
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Jul 4, 2006
1 parent 631e1b9 commit 9154719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 912b2539e1e062cec73e2e61448e507f7719bd08
refs/heads/master: b6a7c79a52939513ef043d6eb9fcf12a056c010e
6 changes: 4 additions & 2 deletions trunk/arch/i386/kernel/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ 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;
Expand All @@ -186,6 +187,7 @@ static struct notifier_block __cpuinitdata cpuid_class_cpu_notifier =
{
.notifier_call = cpuid_class_cpu_callback,
};
#endif /* !CONFIG_HOTPLUG_CPU */

static int __init cpuid_init(void)
{
Expand All @@ -208,7 +210,7 @@ static int __init cpuid_init(void)
if (err != 0)
goto out_class;
}
register_cpu_notifier(&cpuid_class_cpu_notifier);
register_hotcpu_notifier(&cpuid_class_cpu_notifier);

err = 0;
goto out;
Expand All @@ -233,7 +235,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_cpu_notifier(&cpuid_class_cpu_notifier);
unregister_hotcpu_notifier(&cpuid_class_cpu_notifier);
}

module_init(cpuid_init);
Expand Down

0 comments on commit 9154719

Please sign in to comment.