]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: perf: assign pdev pointer earlier for CPU PMUs
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 7 Feb 2014 21:01:20 +0000 (21:01 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 21 Feb 2014 11:10:52 +0000 (11:10 +0000)
commit3b4079a10d29a27e6433cb7a7de7425e69344950
treeb358c1ff9179d9e2eac6bd4bd47517e05b4a510a
parent5597decd6971550cc3685eb7b996f16f3dace394
ARM: perf: assign pdev pointer earlier for CPU PMUs

We want to inspect the of_node that the pdev is pointing to in
the Krait CPU specific PMU initialization function. Assign it
earlier so that we don't crash with a NULL pointer dereference.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_cpu.c