Skip to content
Snippets Groups Projects
Commit d48bab98 authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

kernel/wr_pstats: remove mask


Masking is not needed since uint32_t << 32 zero all lower bits.

Reported-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent 4bfea64a
Branches
Tags
No related merge requests found
......@@ -166,7 +166,6 @@ static uint64_t pstats_irq_cntrs(int port)
pstats_writel(val, pstats_dev, CR);
/* read lower half of cntrs overflow mask */
mask = (((uint64_t)pstats_readl(pstats_dev, L2_CNT_VAL)) << 32);
mask &= 0xFFFFFFFF00000000LL;
mask |= (uint64_t) pstats_readl(pstats_dev, L1_CNT_VAL);
return mask;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment