]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: fix PTM dead locking on tight loop
authorXin Xie <xxie@nvidia.com>
Wed, 4 Dec 2013 00:21:22 +0000 (16:21 -0800)
committerHarshada Kale <hkale@nvidia.com>
Mon, 16 Jun 2014 10:00:53 +0000 (03:00 -0700)
commit14940b5ed7b7b18f2d467d320ccef9fbb59bc851
tree89127445a7c09d9c74d6748b3d9af07f477c6268
parent4d4c5ffdb8f160498c20508a0757e6c6cccaca73
arm: tegra: fix PTM dead locking on tight loop

If one core is executing a tight loop and generating huge number of PTM
packets on funnel, it will cause other core dead locking on the PTM
flushing during the WFI entrance.

This patch will replace the "cpu_relax()" with "smp_mb()", and it can
relax the CPU tight loop and allow other CPU's PTM packet being flushed
properly.

bug 9622188

Change-Id: Ibe17fc91a74a5446d560f71ef9308f3dbd32f6c9
Signed-off-by: Xin Xie <xxie@nvidia.com>
Reviewed-on: http://git-master/r/419511
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Mitch Luban <mluban@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
arch/arm/mach-tegra/Kconfig