aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorUladzislau Rezki (Sony) <[email protected]>2023-04-11 15:13:41 +0200
committerPaul E. McKenney <[email protected]>2023-05-09 17:26:21 -0700
commit021a5ff8474379cd6c23e9b0e97aa27e5ff66a8b (patch)
tree827be40de2b730c4d5bffc6579865eb9b52184d8 /lib/mpi/mpi-sub-ui.c
parent309a4316507767f8078d30c9681dc76f4299b0f1 (diff)
rcu/kvfree: Do not run a page work if a cache is disabled
By default the cache size is 5 pages per CPU, but it can be disabled at boot time by setting the rcu_min_cached_objs to zero. When that happens, the current code will uselessly set an hrtimer to schedule refilling this cache with zero pages. This commit therefore streamlines this process by simply refusing the set the hrtimer when rcu_min_cached_objs is zero. Signed-off-by: Uladzislau Rezki (Sony) <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions