]> 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)
commitb70ad32cc7cf0e7b0092358d6f20b8a7d28478d4
tree68d9fbe5da4304f490a1e3cb5dbf0381c4a5b9b3
parenta02942630b6dc98c14e4ac231cf17e5d917777be
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