[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220209085604.1561628-1-deng.changcheng@zte.com.cn>
Date: Wed, 9 Feb 2022 08:56:04 +0000
From: cgel.zte@...il.com
To: fweisbec@...il.com
Cc: tglx@...utronix.de, mingo@...nel.org, linux-kernel@...r.kernel.org,
Changcheng Deng <deng.changcheng@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH] tick/sched: use min() to make code cleaner
From: Changcheng Deng <deng.changcheng@....com.cn>
Use min() in order to make code cleaner.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@....com.cn>
---
kernel/time/tick-sched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index c89f50a7e690..31064f85a9fd 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -822,7 +822,7 @@ static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu)
next_tmr = get_next_timer_interrupt(basejiff, basemono);
ts->next_timer = next_tmr;
/* Take the next rcu event into account */
- next_tick = next_rcu < next_tmr ? next_rcu : next_tmr;
+ next_tick = min(next_rcu, next_tmr);
}
/*
--
2.25.1
Powered by blists - more mailing lists