Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70987
b: refs/heads/master
c: a850cef
h: refs/heads/master
i:
  70985: ca8b042
  70983: 981d4cc
v: v3
  • Loading branch information
Adrian Bunk authored and Thomas Gleixner committed Oct 17, 2007
1 parent 55696b7 commit 9562b88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: fb7ae26df0b1218b39049b659064d57b58616c94
refs/heads/master: a850cef77f148c2e305022a1ed86ca6cff5ee300
6 changes: 3 additions & 3 deletions trunk/arch/x86/kernel/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ int arch_register_cpu(int num)
* Also certain PCI quirks require not to enable hotplug control
* for all CPU's.
*/
if (num && enable_cpu_hotplug)
#ifdef CONFIG_HOTPLUG_CPU
if (num)
cpu_devices[num].cpu.hotpluggable = 1;
#endif

return register_cpu(&cpu_devices[num].cpu, num);
}

#ifdef CONFIG_HOTPLUG_CPU
int enable_cpu_hotplug = 1;

void arch_unregister_cpu(int num) {
return unregister_cpu(&cpu_devices[num].cpu);
}
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-x86/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ struct i386_cpu {
extern int arch_register_cpu(int num);
#ifdef CONFIG_HOTPLUG_CPU
extern void arch_unregister_cpu(int);
extern int enable_cpu_hotplug;
#else
#define enable_cpu_hotplug 0
#endif

DECLARE_PER_CPU(int, cpu_state);
Expand Down

0 comments on commit 9562b88

Please sign in to comment.