]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite53f33023761e2a05f2838b0b69d2670682ca000
treef02230a549f188f41b7cbd0da25d0b0f70ace7a4
parentfbae0981ba07c264f42ca241e0a084d64ca0fbfb
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