arm: tegra: powergate: use raw_smp_processor_id() in traces
authorSami Liedes <sliedes@nvidia.com>
Thu, 31 Jan 2013 17:50:09 +0000 (19:50 +0200)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:56:38 +0000 (12:56 -0700)
commitbef311e4ccc1054a43db65669eee840a7336af90
tree555db346e3b93d3c65003655537c85b80165830f
parenta6a26fc9b7e289e195f191b44281b31736748c55
arm: tegra: powergate: use raw_smp_processor_id() in traces

The power_domain_target tracepoint takes a processor id; however the
event usually happens in a preemptible context. Calling
smp_processor_id() in a preemptible context causes a warning with
CONFIG_DEBUG_PREEMPT.

Fix this by changing the call to raw_smp_processor_id(), which merely
circumvents the warning. This means that the cpu ids in the trace
events are only indicative and should only be used for what they are
worth. However otherwise this is entirely harmless.

Change-Id: I34a241b0c7d712bbf4b52131d9a9f6eef188ec70
Signed-off-by: Sami Liedes <sliedes@nvidia.com>
Reviewed-on: http://git-master/r/196059
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
arch/arm/mach-tegra/powergate.c