diff options
author | Felix Blyakher <felixb@sgi.com> | 2009-03-06 17:06:44 -0600 |
---|---|---|
committer | Felix Blyakher <felixb@sgi.com> | 2009-03-06 17:06:44 -0600 |
commit | 47d1ff6e1a24c0126cd0243b1d6d0a3ffbd7a026 (patch) | |
tree | b53cd3df68e3a199f6764c619c1a5092d27547e2 /include/linux/rcutree.h | |
parent | b79631330a653f568a2ac4eb4a32474c80e3fe77 (diff) | |
parent | 559595a985e106d2fa9f0c79b7f5805453fed593 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/rcutree.h')
-rw-r--r-- | include/linux/rcutree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h index d4368b7975c3..a722fb67bb2d 100644 --- 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 */ |