Commit d48bab98 authored by Adam Wujek's avatar Adam Wujek 💬

kernel/wr_pstats: remove mask

Masking is not needed since uint32_t << 32 zero all lower bits.
Reported-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 4bfea64a
......@@ -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;
}
......
Markdown is supported
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