MIPS: Lemote 2F: Ensure atomic execution of _rdmsr and _wrmsr
authorWu Zhangjin <wuzhangjin@gmail.com>
Thu, 11 Mar 2010 03:30:50 +0000 (11:30 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 Apr 2010 16:26:12 +0000 (17:26 +0100)
commitb846c10da5d6a5c159ab4dea92c1080d5add9fb1
treef02230a549f188f41b7cbd0da25d0b0f70ace7a4
parent52553664033078102f5f430c861ccd0863b1b708
MIPS: Lemote 2F: Ensure atomic execution of _rdmsr and _wrmsr

On Lemote 2F CS5536 MSRs are accessed through a index / data register pair.
The access sequence must be protected by a spinlock to be atomic.

Without this rebooting in fs2f_reboot() may fail.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: David Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1058/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/pci/ops-loongson2.c