]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91059dec29b1fb63f7714a37d4030447c3016d4d
tree68d9fbe5da4304f490a1e3cb5dbf0381c4a5b9b3
parent1dcecd8395bad0ee382fa3dd204230711216d620
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