ARM64: sched: fix bug: avoid infinite loop
authorChen Liang <cl@rock-chips.com>
Fri, 8 Jul 2016 02:12:43 +0000 (10:12 +0800)
committerChen Liang <cl@rock-chips.com>
Mon, 11 Jul 2016 09:08:55 +0000 (17:08 +0800)
commitd4773e1407b6d59a202bd4ce8acc83deaceafa29
treeb906822db1334533c0c30bc48b4557c6dfc13f34
parentec801e81f6b5dfba32c0be93801fc785f7e962b2
ARM64: sched: fix bug: avoid infinite loop

All of the sched domains will be destroied and then rebuilded when a cpu
online/offline, if a softirq comes after the shced domains are destroied,
this cpu will be stucked in the infinite loop in sched_group_energy(),
because of it can not get the shced donmain in for_each_domain(cpu, sd).

Change-Id: I154cf560e4e1af4a7a2547154ad321e936196ce3
Signed-off-by: Chen Liang <cl@rock-chips.com>
kernel/sched/fair.c