projects
/
linux-3.10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
rcu: Teach RCU that idle task is not quiscent state at boot
[linux-3.10.git]
/
include
/
linux
/
rcutree.h
diff --git
a/include/linux/rcutree.h
b/include/linux/rcutree.h
index
d4368b7
..
a722fb6
100644
(file)
--- a/
include/linux/rcutree.h
+++ b/
include/linux/rcutree.h
@@
-326,4
+326,10
@@
static inline void rcu_exit_nohz(void)
}
#endif /* CONFIG_NO_HZ */
+/* A context switch is a grace period for rcutree. */
+static inline int rcu_blocking_is_gp(void)
+{
+ return num_online_cpus() == 1;
+}
+
#endif /* __LINUX_RCUTREE_H */