]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sched/core: Remove ifdeffery for saved_state
authorElliot Berman <quic_eberman@quicinc.com>
Fri, 8 Sep 2023 22:49:15 +0000 (15:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:09:07 +0000 (12:09 +0200)
commit8afa818c77330fcb269c77540b268f199d84ee8e
tree8a986104178612e72c47353e506d74f879f900e3
parent2c9a096e202c291b956b9c7289421240512a0c09
sched/core: Remove ifdeffery for saved_state

commit fbaa6a181a4b1886cbf4214abdf9a2df68471510 upstream.

In preparation for freezer to also use saved_state, remove the
CONFIG_PREEMPT_RT compilation guard around saved_state.

On the arm64 platform I tested which did not have CONFIG_PREEMPT_RT,
there was no statistically significant deviation by applying this patch.

Test methodology:

perf bench sched message -g 40 -l 40

Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/sched.h
kernel/sched/core.c