android_kernel_sony_sdm845/include/linux/crash_notes.h
exer 360fd56746 include/linux: Import Sony Changes
*52.1.A.3.74

Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:48:10 +07:00

30 lines
791 B
C

/* include/linux/crash_notes.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*/
#ifndef __CRASH_NOTES_H
#define __CRASH_NOTES_H
#ifdef CONFIG_CRASH_NOTES
#include <asm/crash_notes.h>
enum crash_note_save_type {
CRASH_NOTE_INIT,
CRASH_NOTE_STOPPING,
CRASH_NOTE_CRASHING
};
extern void crash_notes_save_cpus(void);
#ifndef CONFIG_ARCH_HAS_CRASH_NOTES
static inline void crash_notes_save_regs(struct pt_regs *regs) { }
#endif
#else /*!CONFIG_CRASH_NOTES*/
static inline void crash_notes_save_cpus(void) { }
#endif /*CONFIG_CRASH_NOTES*/
#endif /*__CRASH_NOTES_H*/