Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24058
b: refs/heads/master
c: 9a98e2f
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Mar 26, 2006
1 parent a7d9f68 commit 2ae84ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 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: 222b9f933a76b127a073f45278d2b0199587e8ce
refs/heads/master: 9a98e2f7326d626d75cab2fe108c34b733227918
19 changes: 0 additions & 19 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,24 +645,6 @@ static void run_init_process(char *init_filename)
execve(init_filename, argv_init, envp_init);
}

static inline void fixup_cpu_present_map(void)
{
#ifdef CONFIG_SMP
int i;

/*
* If arch is not hotplug ready and did not populate
* cpu_present_map, just make cpu_present_map same as cpu_possible_map
* for other cpu bringup code to function as normal. e.g smp_init() etc.
*/
if (cpus_empty(cpu_present_map)) {
for_each_cpu(i) {
cpu_set(i, cpu_present_map);
}
}
#endif
}

static int init(void * unused)
{
lock_kernel();
Expand All @@ -684,7 +666,6 @@ static int init(void * unused)

do_pre_smp_initcalls();

fixup_cpu_present_map();
smp_init();
sched_init_smp();

Expand Down

0 comments on commit 2ae84ba

Please sign in to comment.