diff options
| author | Dmitry Shmidt <dimitrysh@google.com> | 2016-08-30 10:10:04 -0700 |
|---|---|---|
| committer | Dmitry Shmidt <dimitrysh@google.com> | 2016-08-30 10:10:04 -0700 |
| commit | 18cb0eedcc22a6df7da9e106d0c8741e647e4f87 (patch) | |
| tree | 6be93a8dc6f7823467287ce273cd15fd4e06ad29 /kernel/rcu/sync.c | |
| parent | ec5cb2fe853f9002381386513d7147ab6566c64a (diff) | |
| parent | ba52437821164deacf9af90d559f2e3f4888ff28 (diff) | |
Merge remote-tracking branch 'common/android-4.4' into android-4.4.y
Diffstat (limited to 'kernel/rcu/sync.c')
| -rw-r--r-- | kernel/rcu/sync.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c index be922c9f3d37..e358313a0d6c 100644 --- a/kernel/rcu/sync.c +++ b/kernel/rcu/sync.c @@ -83,6 +83,18 @@ void rcu_sync_init(struct rcu_sync *rsp, enum rcu_sync_type type) } /** + * Must be called after rcu_sync_init() and before first use. + * + * Ensures rcu_sync_is_idle() returns false and rcu_sync_{enter,exit}() + * pairs turn into NO-OPs. + */ +void rcu_sync_enter_start(struct rcu_sync *rsp) +{ + rsp->gp_count++; + rsp->gp_state = GP_PASSED; +} + +/** * rcu_sync_enter() - Force readers onto slowpath * @rsp: Pointer to rcu_sync structure to use for synchronization * |
