mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
tick: Remove arch_needs_cpu
Remove unused arch_needs_cpu() hook. No architectures use it after s390 removed its use case. Suggested-by: Heiko Carstens <[email protected]> Signed-off-by: Mete Durlu <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Acked-by: Rafael J. Wysocki (Intel) <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
This commit is contained in:
1 parent
71eabd104e
commit
2bfc9e417a
2 files changed
+3
-7
No files matched your search
@@ -44,9 +44,6 @@ static inline void tick_unfreeze(void) { }
|
||||
|
||||
#ifdef CONFIG_TICK_ONESHOT
|
||||
extern void tick_irq_enter(void);
|
||||
# ifndef arch_needs_cpu
|
||||
# define arch_needs_cpu() (0)
|
||||
# endif
|
||||
# else
|
||||
static inline void tick_irq_enter(void) { }
|
||||
#endif
|
||||
|
||||
@@ -828,8 +828,7 @@ static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu)
|
||||
ts->timer_expires_base = basemono;
|
||||
|
||||
/*
|
||||
* Keep the periodic tick, when RCU, architecture or irq_work
|
||||
* requests it.
|
||||
* Keep the periodic tick, when RCU or irq_work requests it.
|
||||
* Aside of that, check whether the local timer softirq is
|
||||
* pending. If so, its a bad idea to call get_next_timer_interrupt(),
|
||||
* because there is an already expired timer, so it will request
|
||||
@@ -837,8 +836,8 @@ static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu)
|
||||
* minimal delta, which brings us back to this place
|
||||
* immediately. Lather, rinse and repeat...
|
||||
*/
|
||||
if (rcu_needs_cpu() || arch_needs_cpu() ||
|
||||
irq_work_needs_cpu() || local_timer_softirq_pending()) {
|
||||
if (rcu_needs_cpu() || irq_work_needs_cpu() ||
|
||||
local_timer_softirq_pending()) {
|
||||
next_tick = basemono + TICK_NSEC;
|
||||
} else {
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user