diff options
Diffstat (limited to 'include/linux/rcupdate.h')
| -rw-r--r-- | include/linux/rcupdate.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index b758ce17b309..4ccd68e49b00 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h | |||
| @@ -80,6 +80,7 @@ extern void do_trace_rcu_torture_read(char *rcutorturename, | |||
| 80 | #define UINT_CMP_LT(a, b) (UINT_MAX / 2 < (a) - (b)) | 80 | #define UINT_CMP_LT(a, b) (UINT_MAX / 2 < (a) - (b)) |
| 81 | #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) | 81 | #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) |
| 82 | #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) | 82 | #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) |
| 83 | #define ulong2long(a) (*(long *)(&(a))) | ||
| 83 | 84 | ||
| 84 | /* Exported common interfaces */ | 85 | /* Exported common interfaces */ |
| 85 | 86 | ||
| @@ -999,4 +1000,11 @@ static inline notrace void rcu_read_unlock_sched_notrace(void) | |||
| 999 | #define kfree_rcu(ptr, rcu_head) \ | 1000 | #define kfree_rcu(ptr, rcu_head) \ |
| 1000 | __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) | 1001 | __kfree_rcu(&((ptr)->rcu_head), offsetof(typeof(*(ptr)), rcu_head)) |
| 1001 | 1002 | ||
| 1003 | #ifdef CONFIG_RCU_NOCB_CPU | ||
| 1004 | extern bool rcu_is_nocb_cpu(int cpu); | ||
| 1005 | #else | ||
| 1006 | static inline bool rcu_is_nocb_cpu(int cpu) { return false; } | ||
| 1007 | #endif /* #else #ifdef CONFIG_RCU_NOCB_CPU */ | ||
| 1008 | |||
| 1009 | |||
| 1002 | #endif /* __LINUX_RCUPDATE_H */ | 1010 | #endif /* __LINUX_RCUPDATE_H */ |
