public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Remove unreasonable detached state set in tick_shutdown()
@ 2025-09-04  7:17 Bibo Mao
  2025-09-04  7:17 ` [PATCH v2 1/2] tick: " Bibo Mao
  2025-09-04  7:17 ` [PATCH v2 2/2] LoongArch: Remove clockevents shutdown call on offlining Bibo Mao
  0 siblings, 2 replies; 11+ messages in thread
From: Bibo Mao @ 2025-09-04  7:17 UTC (permalink / raw)
  To: Huacai Chen, Anna-Maria Behnsen, Frederic Weisbecker, Ingo Molnar,
	Thomas Gleixner
  Cc: linux-kernel, loongarch, Xianglai Li

Function clockevents_switch_state() will check whether it has already
switched to specified state, do nothing if it has.

In function tick_shutdown(), it will set detached state at first and
call clockevents_switch_state() in clockevents_exchange_device(). The
function clockevents_switch_state() will do nothing since it is already
detached state. So the tick timer device will not be shutdown when CPU
is offline.

Here remove state set before calling clockevents_exchange_device(),
its state will be set in function clockevents_switch_state() if it
succeeds to do so.

---
  v1 ... v2:
  1. Add Fixes tag in patch 1 since those commits removed shutdown calls
     made from drivers that assumed the timer core would do so.

  2. Remove clockevents shutdown call on LoongArch cpu offline
---
Bibo Mao (2):
  tick: Remove unreasonable detached state set in tick_shutdown()
  LoongArch: Remove clockevents shutdown call on offlining

 arch/loongarch/kernel/time.c | 2 --
 kernel/time/tick-common.c    | 5 -----
 2 files changed, 7 deletions(-)


base-commit: b9a10f876409bf3768178f4aded199e193ddbe33
-- 
2.39.3


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-09-05  7:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  7:17 [PATCH v2 0/2] Remove unreasonable detached state set in tick_shutdown() Bibo Mao
2025-09-04  7:17 ` [PATCH v2 1/2] tick: " Bibo Mao
2025-09-04 10:33   ` Frederic Weisbecker
2025-09-04 15:57   ` Thomas Gleixner
2025-09-04 16:08     ` Frederic Weisbecker
2025-09-05  2:04     ` Bibo Mao
2025-09-05  7:41       ` Thomas Gleixner
2025-09-04  7:17 ` [PATCH v2 2/2] LoongArch: Remove clockevents shutdown call on offlining Bibo Mao
2025-09-04 14:10   ` Frederic Weisbecker
2025-09-04 14:28     ` Huacai Chen
2025-09-04 14:43       ` Frederic Weisbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox