Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22998
b: refs/heads/master
c: 44fd229
h: refs/heads/master
v: v3
  • Loading branch information
Stas Sergeev authored and Linus Torvalds committed Mar 23, 2006
1 parent 3e0cf35 commit 3e3bff9
Show file tree
Hide file tree
Showing 2 changed files with 12 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: ffa930ef55ae82c09e30b2a0c4ce5d7fdea041e2
refs/heads/master: 44fd22992cb76dc51c52cf4b8aff1bc7899bb23c
17 changes: 11 additions & 6 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,15 @@ void __init parse_early_param(void)
* Activate the first processor.
*/

static void __init boot_cpu_init(void)
{
int cpu = smp_processor_id();
/* Mark the boot cpu "present", "online" etc for SMP and UP case */
cpu_set(cpu, cpu_online_map);
cpu_set(cpu, cpu_present_map);
cpu_set(cpu, cpu_possible_map);
}

asmlinkage void __init start_kernel(void)
{
char * command_line;
Expand All @@ -447,17 +456,13 @@ asmlinkage void __init start_kernel(void)
* enable them
*/
lock_kernel();
boot_cpu_init();
page_address_init();
printk(KERN_NOTICE);
printk(linux_banner);
setup_arch(&command_line);
setup_per_cpu_areas();

/*
* Mark the boot cpu "online" so that it can call console drivers in
* printk() and can access its per-cpu storage.
*/
smp_prepare_boot_cpu();
smp_prepare_boot_cpu(); /* arch-specific boot-cpu hooks */

/*
* Set up the scheduler prior starting any interrupts (such as the
Expand Down

0 comments on commit 3e3bff9

Please sign in to comment.