Revert "sched/tune: Initialize raw_spin_lock in boosted_groups"
authorTao Huang <huangtao@rock-chips.com>
Tue, 8 Aug 2017 08:48:53 +0000 (16:48 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 9 Aug 2017 01:22:46 +0000 (09:22 +0800)
This reverts commit 9a9259a78c5c723db2a5daaae322f929012d967a.

It seems schedtune_init_cgroups and schedtune_boostgroup_init
all call raw_spin_lock_init(&bg->lock), it is wrong.

Change-Id: Icbdfeaf81f4fb59fdcc02623ac5e26d41bd1e496
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
kernel/sched/tune.c

index 86d04caf1684b4095c4c3dfbecc8c96fc13904f2..d444fc1a4d5832ccf37c24cb199c86b5b00c7dbb 100644 (file)
@@ -647,7 +647,6 @@ schedtune_boostgroup_init(struct schedtune *st)
                bg = &per_cpu(cpu_boost_groups, cpu);
                bg->group[st->idx].boost = 0;
                bg->group[st->idx].tasks = 0;
-               raw_spin_lock_init(&bg->lock);
        }
 
        return 0;