misc: tegra-profiler: guard pl310 with kernel config
authorMatt Craighead <mcraighead@nvidia.com>
Fri, 20 Sep 2013 18:28:42 +0000 (13:28 -0500)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Tue, 1 Oct 2013 08:10:03 +0000 (13:10 +0530)
commit395d154ab8828490184428ec6819c51f2f4f61d1
tree6ca601a8d1ddbe699060a97f6f6a2e139abf6696
parentf8377362ee2547d3986da10c3d886acce9e57384
misc: tegra-profiler: guard pl310 with kernel config

Don't attempt to access the PL310 unless the kernel config
indicates that it exists.

Change-Id: I07eeb0eead095ecd0f3caa36393fce1697b87d56
Signed-off-by: Matt Craighead <mcraighead@nvidia.com>
Reviewed-on: http://git-master/r/277313
Reviewed-by: Edgardo Handal <ehandal@nvidia.com>
Tested-by: Edgardo Handal <ehandal@nvidia.com>
Reviewed-by: Allen Martin <amartin@nvidia.com>
(cherry picked from commit 023737d7ca069684172e70f979784d9f344bfcb3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
drivers/misc/tegra-profiler/pl310.c