commit | b846c10da5d6a5c159ab4dea92c1080d5add9fb1 | [log] [tgz] |
---|---|---|
author | Wu Zhangjin <wuzhangjin@gmail.com> | Thu Mar 11 11:30:50 2010 +0800 |
committer | Ralf Baechle <ralf@linux-mips.org> | Mon Apr 12 17:26:12 2010 +0100 |
tree | f02230a549f188f41b7cbd0da25d0b0f70ace7a4 | |
parent | 52553664033078102f5f430c861ccd0863b1b708 [diff] |
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>