linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add new API is_being_panic()
@ 2020-12-18 11:44 Xiaoming Ni
  2020-12-18 11:44 ` [PATCH 1/4] panic: " Xiaoming Ni
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Xiaoming Ni @ 2020-12-18 11:44 UTC (permalink / raw)
  To: linux-kernel, linux-leds, pavel, dmurphy, akpm, keescook,
	gpiccoli, penguin-kernel
  Cc: nixiaoming, wangle6

Add is_being_panic() to check whether the system is in panic state.
Used to replace the global variable used to determine the panic status
in other features: hung_task ledtrig-activity ledtrig-heartbeat


Xiaoming Ni (4):
  panic: Add new API is_being_panic()
  hung_task: Replace "did_panic" with is_be_panic()
  leds:trigger:ledtrig-activity Replace "panic_detected" with
    is_be_panic()
  leds:trigger:ledtrig-heartbeat: Replace "panic_heartbeats" with
    is_be_panic()

 drivers/leds/trigger/ledtrig-activity.c  | 19 +------------------
 drivers/leds/trigger/ledtrig-heartbeat.c | 19 +------------------
 include/linux/kernel.h                   |  1 +
 kernel/hung_task.c                       | 17 +----------------
 kernel/panic.c                           |  6 ++++++
 5 files changed, 10 insertions(+), 52 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2020-12-20  2:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 11:44 [PATCH 0/4] Add new API is_being_panic() Xiaoming Ni
2020-12-18 11:44 ` [PATCH 1/4] panic: " Xiaoming Ni
2020-12-18 11:44 ` [PATCH 2/4] hung_task: Replace "did_panic" with is_be_panic() Xiaoming Ni
2020-12-18 12:59   ` Pavel Machek
2020-12-18 14:36     ` Tetsuo Handa
2020-12-18 17:06       ` Randy Dunlap
2020-12-20  2:58         ` Xiaoming Ni
2020-12-18 11:44 ` [PATCH 3/4] leds:trigger:ledtrig-activity Replace "panic_detected" " Xiaoming Ni
2020-12-18 11:44 ` [PATCH 4/4] leds:trigger:ledtrig-heartbeat: Replace "panic_heartbeats" " Xiaoming Ni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).