HV:treewide: Rename bit operation function fls as fls32

Rename bit operation function fls as fls32, keep name
style with other bit operation function.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Xiangyang Wu
2018-07-03 09:25:50 +08:00
committed by lijinxia
parent 8afbe66fe9
commit 50f06cad55
2 changed files with 9 additions and 9 deletions

View File

@@ -774,7 +774,7 @@ vlapic_process_eoi(struct vlapic *vlapic)
tmrptr = &lapic->tmr[0];
for (i = 7; i >= 0; i--) {
bitpos = fls(isrptr[i].val);
bitpos = fls32(isrptr[i].val);
if (bitpos != INVALID_BIT_INDEX) {
if (vlapic->isrvec_stk_top <= 0) {
panic("invalid vlapic isrvec_stk_top %d",
@@ -1145,7 +1145,7 @@ vlapic_pending_intr(struct vlapic *vlapic, uint32_t *vecptr)
for (i = 7; i >= 0; i--) {
val = atomic_load((int *)&irrptr[i].val);
bitpos = fls(val);
bitpos = fls32(val);
if (bitpos != INVALID_BIT_INDEX) {
vector = (uint32_t)(i * 32) + (uint32_t)bitpos;
if (PRIO(vector) > PRIO(lapic->ppr)) {