diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-04-18 11:11:39 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-05-15 10:29:18 -0700 |
commit | c91a8675b9cc697c725b6d97fcc7f157f4a989d0 (patch) | |
tree | 335a7e265dda2c90ad19b8240b65be694fab0a0e /tools/perf/scripts/python | |
parent | 825a9911f6447299a69edacecc81fa2cdc5290a7 (diff) |
rcu: Add accessor macros for the ->need_future_gp[] array
Accessors for the ->need_future_gp[] array are currently open-coded,
which makes them difficult to change. To improve maintainability, this
commit adds need_future_gp_mask() to compute the indexing mask from the
array size, need_future_gp_element() to access the element corresponding
to the specified grace-period number, and need_any_future_gp() to
determine if any future grace period is needed. This commit also applies
need_future_gp_element() to existing open-coded single-element accesses.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions