mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
rcu: Expand SRCU ->completed to 64 bits
When rcutorture used only the low-order 32 bits of the grace-period number, it was not a problem for SRCU to use a 32-bit completed field. However, rcutorture now uses the full 64 bits on 64-bit systems, so this commit converts SRCU's ->completed field to unsigned long so as to provide 64 bits on 64-bit systems. Signed-off-by: Paul E. McKenney <[email protected]>
This commit is contained in:
parent
734d168013
commit
a5c198f4f7
2 changed files with 3 additions and 3 deletions
|
|
@ -546,7 +546,7 @@ EXPORT_SYMBOL_GPL(srcu_barrier);
|
|||
* Report the number of batches, correlated with, but not necessarily
|
||||
* precisely the same as, the number of grace periods that have elapsed.
|
||||
*/
|
||||
long srcu_batches_completed(struct srcu_struct *sp)
|
||||
unsigned long srcu_batches_completed(struct srcu_struct *sp)
|
||||
{
|
||||
return sp->completed;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue