Commit 1ff38d11 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Aichun Shi
Browse files

rbtree, sched/deadline: Use rb_add_cached()

mainline inclusion
from mainline-v5.12-rc1
commit 8ecca394
category: feature
feature: SPR PMU uncore support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5BECO



Intel-SIG: commit 8ecca394 rbtree, sched/deadline: Use
rb_add_cached()
This commit is backported as a dependency for SPR PMU uncore support.

-------------------------------------

Reduce rbtree boiler plate by using the new helpers.

Make rb_add_cached() / rb_erase_cached() return a pointer to the
leftmost node to aid in updating additional state.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarDavidlohr Bueso <dbueso@suse.de>
Signed-off-by: default avatarYunying Sun <yunying.sun@intel.com>
Signed-off-by: default avatarAichun Shi <aichun.shi@intel.com>
parent 9f4ddaa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment