OSDN Git Service

psi: Pressure states are unlikely
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 3 Mar 2021 03:46:58 +0000 (11:46 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:23 +0000 (12:40 +0100)
commitfddc8bab531e217806b84906681324377d741c6c
tree242dc5a47effff8ece67bdb77c4217f67fd5eadc
parent7fae6c8171d20ac55402930ee8ae760cf85dff7b
psi: Pressure states are unlikely

Move the unlikely branches out of line. This eliminates undesirable
jumps during wakeup and sleeps for workloads that aren't under any
sort of resource pressure.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20210303034659.91735-4-zhouchengming@bytedance.com
kernel/sched/psi.c