csky: Add count-width property for csky pmu
authorMao Han <han_mao@c-sky.com>
Tue, 4 Jun 2019 10:54:45 +0000 (18:54 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Fri, 19 Jul 2019 06:21:36 +0000 (14:21 +0800)
commitccffa1ad15be95b11dab128e1a59270057322934
tree68d9fbe5da4304f490a1e3cb5dbf0381c4a5b9b3
parentf132076c8ff9ec1603c7079c3ce3b2cce8b72a89
csky: Add count-width property for csky pmu

The csky pmu counter may have different io width. When the counter is
smaller then 64 bits and counter value is smaller than the old value, it
will result to a extremely large delta value. So the sampled value should
be extend to 64 bits to avoid this, the extension bits base on the
count-width property from dts.

Signed-off-by: Mao Han <han_mao@c-sky.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
arch/csky/kernel/perf_event.c