Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73409
b: refs/heads/master
c: e6fe664
h: refs/heads/master
i:
  73407: 56ec095
v: v3
  • Loading branch information
Adrian Bunk authored and Ingo Molnar committed Nov 9, 2007
1 parent 4100cd7 commit 27c82fc
Show file tree
Hide file tree
Showing 4 changed files with 11 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: b82d9fdd848abfbe7263a4ecd9bbb55e575100a6
refs/heads/master: e6fe6649b4ec11aa3075e394b4d8743eebe1f64c
8 changes: 8 additions & 0 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,14 @@ static inline void inc_syscw(struct task_struct *tsk)
}
#endif

#ifdef CONFIG_SMP
void migration_init(void);
#else
static inline void migration_init(void)
{
}
#endif

#endif /* __KERNEL__ */

#endif
4 changes: 1 addition & 3 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include <linux/pid_namespace.h>
#include <linux/device.h>
#include <linux/kthread.h>
#include <linux/sched.h>

#include <asm/io.h>
#include <asm/bugs.h>
Expand Down Expand Up @@ -747,11 +748,8 @@ __setup("nosoftlockup", nosoftlockup_setup);
static void __init do_pre_smp_initcalls(void)
{
extern int spawn_ksoftirqd(void);
#ifdef CONFIG_SMP
extern int migration_init(void);

migration_init();
#endif
spawn_ksoftirqd();
if (!nosoftlockup)
spawn_softlockup_task();
Expand Down
4 changes: 1 addition & 3 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -5650,7 +5650,7 @@ static struct notifier_block __cpuinitdata migration_notifier = {
.priority = 10
};

int __init migration_init(void)
void __init migration_init(void)
{
void *cpu = (void *)(long)smp_processor_id();
int err;
Expand All @@ -5660,8 +5660,6 @@ int __init migration_init(void)
BUG_ON(err == NOTIFY_BAD);
migration_call(&migration_notifier, CPU_ONLINE, cpu);
register_cpu_notifier(&migration_notifier);

return 0;
}
#endif

Expand Down

0 comments on commit 27c82fc

Please sign in to comment.