32#ifndef __ASM_PREEMPT_H
33#define __ASM_PREEMPT_H
42#define PREEMPT_NEED_RESCHED (1ULL << 32)
43#define PREEMPT_ENABLED (PREEMPT_NEED_RESCHED)
45static inline int preempt_count(
void)
50static inline void preempt_count_set(
unsigned long long pc)
55static inline void set_preempt_need_resched(
void)
59static inline void clear_preempt_need_resched(
void)
63static inline bool test_preempt_need_resched(
void)
68static inline void __preempt_count_add(
int val)
73static inline void __preempt_count_sub(
int val)
78static inline bool __preempt_count_dec_and_test(
void)
83static inline bool should_resched(
int preempt_offset)