1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * livepatch.h - powerpc-specific Kernel Live 4 * 5 * Copyright (C) 2015-2016, SUSE, IBM Corp. 6 */ 7 #ifndef _ASM_POWERPC_LIVEPATCH_H 8 #define _ASM_POWERPC_LIVEPATCH_H 9 10 #include <linux/sched.h> 11 #include <linux/sched/task_stack.h> 12 13 #ifdef CONFIG_LIVEPATCH_64 14 static inline void klp_init_thread_info(struct 15 { 16 /* + 1 to account for STACK_END_MAGIC 17 task_thread_info(p)->livepatch_sp = en 18 } 19 #else 20 static inline void klp_init_thread_info(struct 21 #endif 22 23 #endif /* _ASM_POWERPC_LIVEPATCH_H */ 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.