From: Andrew Morton kernel/sched.c: In function 'sched_init': kernel/sched.c:7066: error: 'balancing' undeclared (first use in this function) Signed-off-by: Christoph Lameter Cc: Peter Williams Cc: Nick Piggin Cc: Christoph Lameter Cc: "Siddha, Suresh B" Cc: "Chen, Kenneth W" Cc: Ingo Molnar Cc: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton --- kernel/sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN kernel/sched.c~sched-add-option-to-serialize-load-balancing-fix kernel/sched.c --- a/kernel/sched.c~sched-add-option-to-serialize-load-balancing-fix +++ a/kernel/sched.c @@ -2880,7 +2880,7 @@ static void update_load(struct rq *this_ * * Balancing parameters are set up in arch_init_sched_domains. */ -static spinlock_t balancing; +static DEFINE_SPINLOCK(balancing); static void run_rebalance_domains(struct softirq_action *h) { @@ -6879,7 +6879,6 @@ void __init sched_init(void) #ifdef CONFIG_RT_MUTEXES plist_head_init(&init_task.pi_waiters, &init_task.pi_lock); - spin_lock_init(&balancing); #endif /* _