]> git.hungrycats.org Git - linux/commit
sched/smt: Update sched_smt_present at runtime
authorPeter Zijlstra <peterz@infradead.org>
Tue, 29 May 2018 14:43:46 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Aug 2018 16:11:00 +0000 (18:11 +0200)
commitf3839aa4a2b9b04b5b4144412e436d6811972d2b
tree7ea0af97684ebf0a5f4a491d29703c653d28eb0f
parent3f1ad8f2b59eb19fcb130270d003be4c61ef4af7
sched/smt: Update sched_smt_present at runtime

commit ba2591a5993eabcc8e874e30f361d8ffbb10d6d4 upstream

The static key sched_smt_present is only updated at boot time when SMT
siblings have been detected. Booting with maxcpus=1 and bringing the
siblings online after boot rebuilds the scheduling domains correctly but
does not update the static key, so the SMT code is not enabled.

Let the key be updated in the scheduler CPU hotplug code to fix this.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sched/core.c
kernel/sched/fair.c