tegra-profiler: fix UBSAN shift_out_of_bound error
authorIgor Nabirushkin <inabirushkin@nvidia.com>
Wed, 7 Jun 2017 11:54:47 +0000 (14:54 +0300)
committerIgor Nabirushkin <inabirushkin@nvidia.com>
Tue, 8 Aug 2017 14:22:58 +0000 (17:22 +0300)
commit4a21d4934317c9f11a5ca1b1ae862dfa000cd14d
treeaa34769b643e2994d8ea7ae7ac144d09342f73bf
parent8ef7217e12d8a378c7810427df3d013d0a7c7ae5
tegra-profiler: fix UBSAN shift_out_of_bound error

The UBSAN reports the following error in armv8_pmu.c:

[.../lib/ubsan.c:421>] __ubsan_handle_shift_out_of_bounds
[.../drivers/misc/tegra-profiler/armv8_pmu.c:273>] pmu_start
[.../drivers/misc/tegra-profiler/hrt.c:594>] __quadd_task_sched_in

The reason for this error is wrong value for PMOVSCLR_EL0 register.
This commit fixes this problem.

Bug 1932645

Change-Id: I589587b0d30e1c84a6c27d2f6b06cb2ced742655
Signed-off-by: Igor Nabirushkin <inabirushkin@nvidia.com>
Reviewed-on: http://git-master/r/1497591
(cherry picked from commit 96ca19ae7cdceae82ff3e96cae247334775e30c5)
drivers/misc/tegra-profiler/armv8_pmu.c