summaryrefslogtreecommitdiff
path: root/lib/raid6/test
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-04-23 10:12:00 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2014-05-23 09:19:40 +0200
commit95c19a06ec1cf9530ebb8f2c7eeda1d7398b43f1 (patch)
tree20561a7ed203836147c9f9070f2dd550e42eb626 /lib/raid6/test
parent4a3ae07413844733e4cb3765f67a752b846df913 (diff)
clocksource: Fix clocksource_mmio_readX_down
For some clocksource devices, for example, the registers are 32-bit, while the lower 16-bit is used for timer counting(And reading the upper 16-bit will return 0). For example, when the counter value is 0x00001111, and then the ~readl_relaxed(to_mmio_clksrc(c)->reg) will return the value of 0xFFFFEEEE, but it should be 0x0000EEEE. So just using the c->mask to mask the unused bits. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'lib/raid6/test')
0 files changed, 0 insertions, 0 deletions