18 lines
452 B
C
Executable file
18 lines
452 B
C
Executable file
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _SEC_MM_DEBUG_H
|
|
#define _SEC_MM_DEBUG_H
|
|
|
|
#define GB_TO_PAGES(x) ((x) << (30 - PAGE_SHIFT))
|
|
#define MB_TO_PAGES(x) ((x) << (20 - PAGE_SHIFT))
|
|
#define K(x) ((x) << (PAGE_SHIFT-10))
|
|
|
|
void mm_debug_show_free_areas(void);
|
|
void mm_debug_dump_tasks(void);
|
|
|
|
void init_lowfile_detect(void);
|
|
void exit_lowfile_detect(void);
|
|
|
|
void init_panic_hander(void);
|
|
void exit_panic_hander(void);
|
|
|
|
#endif /* _SEC_MM_DEBUG_H */
|