From: Wu Zhangjin Date: Thu, 11 Mar 2010 03:30:50 +0000 (+0800) Subject: MIPS: Lemote 2F: Ensure atomic execution of _rdmsr and _wrmsr X-Git-Tag: v2.6.34-rc4~6^2~26 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b846c10da5d6a5c159ab4dea92c1080d5add9fb1;p=pandora-kernel.git 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 Cc: linux-mips@linux-mips.org Cc: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1058/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed