Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58265
b: refs/heads/master
c: 1df2105
h: refs/heads/master
i:
  58263: 84b6a9c
v: v3
  • Loading branch information
Ingo Molnar committed Jul 9, 2007
1 parent 16abfe6 commit 6858d6c
Show file tree
Hide file tree
Showing 4 changed files with 10 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: 4da1ce6d9c7e2a6d9236bf4dcfd33cf506082794
refs/heads/master: 1df21055e34b6a68d62cf0c524b9e52deebd7ead
1 change: 1 addition & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ struct task_struct;
extern void sched_init(void);
extern void sched_init_smp(void);
extern void init_idle(struct task_struct *idle, int cpu);
extern void init_idle_bootup_task(struct task_struct *idle);

extern cpumask_t nohz_cpu_mask;
#if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ)
Expand Down
5 changes: 3 additions & 2 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,16 @@ static void noinline __init_refok rest_init(void)

/*
* The boot idle thread must execute schedule()
* at least one to get things moving:
* at least once to get things moving:
*/
init_idle_bootup_task(current);
preempt_enable_no_resched();
schedule();
preempt_disable();

/* Call into cpu_idle with preempt disabled */
cpu_idle();
}
}

/* Check for early params. */
static int __init do_early_param(char *param, char *val)
Expand Down
5 changes: 5 additions & 0 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5018,6 +5018,11 @@ void show_state_filter(unsigned long state_filter)
debug_show_all_locks();
}

void __cpuinit init_idle_bootup_task(struct task_struct *idle)
{
/* nothing yet */
}

/**
* init_idle - set up an idle thread for a given CPU
* @idle: task in question
Expand Down

0 comments on commit 6858d6c

Please sign in to comment.