diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-03 14:32:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-03 14:32:04 -0800 |
commit | b24746c7be75384d182845375c96433d713981bb (patch) | |
tree | fdb0371d9e59c94e18c946a88c4aa3bcfa4af9b1 /include/linux/rcuclassic.h | |
parent | f41bf2ab998daaa2ac27348d5813e0ae21c57ded (diff) | |
parent | a682604838763981613e42015cd0e39f2989d6bb (diff) | |
download | kernel-crypto-b24746c7be75384d182845375c96433d713981bb.tar.gz kernel-crypto-b24746c7be75384d182845375c96433d713981bb.tar.xz kernel-crypto-b24746c7be75384d182845375c96433d713981bb.zip |
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
rcu: Teach RCU that idle task is not quiscent state at boot
Diffstat (limited to 'include/linux/rcuclassic.h')
-rw-r--r-- | include/linux/rcuclassic.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rcuclassic.h b/include/linux/rcuclassic.h index f3f697df1d7..80044a4f3ab 100644 --- a/include/linux/rcuclassic.h +++ b/include/linux/rcuclassic.h @@ -181,4 +181,10 @@ extern long rcu_batches_completed_bh(void); #define rcu_enter_nohz() do { } while (0) #define rcu_exit_nohz() do { } while (0) +/* A context switch is a grace period for rcuclassic. */ +static inline int rcu_blocking_is_gp(void) +{ + return num_online_cpus() == 1; +} + #endif /* __LINUX_RCUCLASSIC_H */ |