netfilter: ctnetlink: add zone support
[safe/jmp/linux-2.6] / include / linux / rcutiny.h
index 2c1fe83..96cc307 100644 (file)
@@ -38,7 +38,11 @@ void rcu_bh_qs(int cpu);
 
 #define rcu_init_sched()       do { } while (0)
 extern void rcu_check_callbacks(int cpu, int user);
-extern void __rcu_init(void);
+
+static inline int rcu_needs_cpu(int cpu)
+{
+       return 0;
+}
 
 /*
  * Return the number of grace periods.
@@ -58,6 +62,8 @@ static inline long rcu_batches_completed_bh(void)
 
 extern int rcu_expedited_torture_stats(char *page);
 
+#define synchronize_rcu synchronize_sched
+
 static inline void synchronize_rcu_expedited(void)
 {
        synchronize_sched();
@@ -69,7 +75,6 @@ static inline void synchronize_rcu_bh_expedited(void)
 }
 
 struct notifier_block;
-extern int rcu_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu);
 
 #ifdef CONFIG_NO_HZ
 
@@ -88,8 +93,17 @@ static inline void rcu_exit_nohz(void)
 
 #endif /* #else #ifdef CONFIG_NO_HZ */
 
+static inline void rcu_scheduler_starting(void)
+{
+}
+
 static inline void exit_rcu(void)
 {
 }
 
+static inline int rcu_preempt_depth(void)
+{
+       return 0;
+}
+
 #endif /* __LINUX_RCUTINY_H */