aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2020-07-17 16:05:41 +0200
committerThomas Gleixner <[email protected]>2020-07-17 21:55:21 +0200
commit3d2e83a2a6a0657c1cf145fa6ba23620715d6c36 (patch)
treec6bafe07e103f73b9c092915ee0e4285110646b1 /lib/mpi/mpi-sub-ui.c
parente2a71bdea81690b6ef11f4368261ec6f5b6891aa (diff)
timers: Preserve higher bits of expiration on index calculation
The higher bits of the timer expiration are cropped while calling calc_index() due to the implicit cast from unsigned long to unsigned int. This loss shouldn't have consequences on the current code since all the computation to calculate the index is done on the lower 32 bits. However to prepare for returning the actual bucket expiration from calc_index() in order to properly fix base->next_expiry updates, the higher bits need to be preserved. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions