event/octeontx2: simplify timer bucket estimation
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Tue, 23 Mar 2021 08:44:35 +0000 (14:14 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 12 Apr 2021 07:23:34 +0000 (09:23 +0200)
commit25b401c8b6405b7d788bc5602cbeb3ee463ff322
treeae3b8377aa447705bd662d01539bc7738e2b1221
parent64ea4ae1784118bc1ff76731df0a0a81e63a1350
event/octeontx2: simplify timer bucket estimation

Simplify timer bucket estimation we need not align buckets to
power of 2 instead use reciprocal division to compute mod.

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/octeontx2/otx2_tim_evdev.c
drivers/event/octeontx2/otx2_tim_evdev.h
drivers/event/octeontx2/otx2_tim_worker.c
drivers/event/octeontx2/otx2_tim_worker.h