Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / loongarch / include / asm / entry-common.h
blob0fe2a098ded96caec4e556d53552392a9fba2e60
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ARCH_LOONGARCH_ENTRY_COMMON_H
3 #define ARCH_LOONGARCH_ENTRY_COMMON_H
5 #include <linux/sched.h>
6 #include <linux/processor.h>
8 static inline bool on_thread_stack(void)
10 return !(((unsigned long)(current->stack) ^ current_stack_pointer) & ~(THREAD_SIZE - 1));
13 #endif