From fbe241ba61bca637ebae97da79ffb0b336c22010 Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Thu, 27 Jan 2022 11:38:37 -0500 Subject: [PATCH] drivers: soc: qcom: switch to cached rbtree root for timerqueue Following upstream commit ef2e6403, adapt the timerqueue_head to use the cached rbtree. Change-Id: Ic00e382de64e190d0a2057fa53478ca9b9b7d4c4 Signed-off-by: Chenyang Zhong --- drivers/soc/qcom/event_timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/qcom/event_timer.c b/drivers/soc/qcom/event_timer.c index 24c90fb9ef04..e6183c2647d4 100644 --- a/drivers/soc/qcom/event_timer.c +++ b/drivers/soc/qcom/event_timer.c @@ -51,8 +51,7 @@ struct hrtimer_info { static DEFINE_PER_CPU(struct hrtimer_info, per_cpu_hrtimer); static DEFINE_PER_CPU(struct timerqueue_head, timer_head) = { - .head = RB_ROOT, - .next = NULL, + .rb_root = RB_ROOT_CACHED, }; static DEFINE_SPINLOCK(event_timer_lock);