Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153830
b: refs/heads/master
c: 31950eb
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Jun 23, 2009
1 parent a17de0a commit afce9fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 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: ac1b7c378ef26fba6694d5f118fe7fc16fee2fe2
refs/heads/master: 31950eb66ff47c946fd9c65c2f8c94b6b7ba13fc
5 changes: 0 additions & 5 deletions trunk/include/linux/cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ static inline void unregister_cpu_notifier(struct notifier_block *nb)

int cpu_up(unsigned int cpu);
void notify_cpu_starting(unsigned int cpu);
extern void cpu_hotplug_init(void);
extern void cpu_maps_update_begin(void);
extern void cpu_maps_update_done(void);

Expand All @@ -84,10 +83,6 @@ static inline void unregister_cpu_notifier(struct notifier_block *nb)
{
}

static inline void cpu_hotplug_init(void)
{
}

static inline void cpu_maps_update_begin(void)
{
}
Expand Down
1 change: 0 additions & 1 deletion trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ asmlinkage void __init start_kernel(void)
#endif
page_cgroup_init();
enable_debug_pagealloc();
cpu_hotplug_init();
kmemtrace_init();
kmemleak_init();
debug_objects_mem_init();
Expand Down
13 changes: 5 additions & 8 deletions trunk/kernel/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ static struct {
* an ongoing cpu hotplug operation.
*/
int refcount;
} cpu_hotplug;

void __init cpu_hotplug_init(void)
{
cpu_hotplug.active_writer = NULL;
mutex_init(&cpu_hotplug.lock);
cpu_hotplug.refcount = 0;
}
} cpu_hotplug = {
.active_writer = NULL,
.lock = __MUTEX_INITIALIZER(cpu_hotplug.lock),
.refcount = 0,
};

#ifdef CONFIG_HOTPLUG_CPU

Expand Down

0 comments on commit afce9fa

Please sign in to comment.