]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Lantiq: Add locking for PMU register and check status afterwards
authorHauke Mehrtens <hauke.mehrtens@lantiq.com>
Wed, 28 Oct 2015 22:37:30 +0000 (23:37 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Oct 2015 18:40:31 +0000 (19:40 +0100)
commit8502afa32113ea11cead59aeeb1868f90d101e02
tree93ca6e62e5d9a10b6d85b58586a76bf773abdb78
parent80833b43e15d68aa3ec838481be3b3879aaaa886
MIPS: Lantiq: Add locking for PMU register and check status afterwards

The PMU register are accessed in a non atomic way and they could be
accessed by different threads simultaneously, which could cause
problems this patch adds locking around the PMU registers. In
addition we now also wait till the PMU is actually deactivated.

[ralf@linux-mips.org: Fix spelling mistake in commit message as noticed
by Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>.]

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Acked-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11381/
Patchwork: https://patchwork.linux-mips.org/patch/11396/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lantiq/xway/sysctrl.c