csky: Init pmu as a device
authorMao Han <han_mao@c-sky.com>
Tue, 4 Jun 2019 10:54:44 +0000 (18:54 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Fri, 19 Jul 2019 06:21:36 +0000 (14:21 +0800)
commitf132076c8ff9ec1603c7079c3ce3b2cce8b72a89
tree3840019f0765c0d7dee3a13745ccd786828c606d
parent3158d28953fcd85492b28b1d2d5a5e20bb62a626
csky: Init pmu as a device

This patch change the csky pmu initialization from arch init to
device init. The pmu can be configued with information from
device tree(pmu device name, irq number and etc.).

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