|
@@ -33,6 +33,7 @@
|
|
|
#ifndef __LINUX_RCUPDATE_H
|
|
|
#define __LINUX_RCUPDATE_H
|
|
|
|
|
|
+#include <linux/types.h>
|
|
|
#include <linux/cache.h>
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/threads.h>
|
|
@@ -64,16 +65,6 @@ static inline void rcutorture_record_progress(unsigned long vernum)
|
|
|
#define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b))
|
|
|
#define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b))
|
|
|
|
|
|
-/**
|
|
|
- * struct rcu_head - callback structure for use with RCU
|
|
|
- * @next: next update requests in a list
|
|
|
- * @func: actual update function to call after the grace period.
|
|
|
- */
|
|
|
-struct rcu_head {
|
|
|
- struct rcu_head *next;
|
|
|
- void (*func)(struct rcu_head *head);
|
|
|
-};
|
|
|
-
|
|
|
/* Exported common interfaces */
|
|
|
extern void call_rcu_sched(struct rcu_head *head,
|
|
|
void (*func)(struct rcu_head *rcu));
|