aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/netlogic
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-06-10 02:30:03 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-06-13 11:46:41 -0400
commit64f6ebe63914835ad5cd5bc4c490f3deaeac2511 (patch)
treea8f01cf641a850ce17d71ef05bd236d6f14d0b35 /arch/mips/include/asm/netlogic
parent1c146cd46fccfaa5525152f086da2752fe0ed4dd (diff)
MIPS: Netlogic: rename nlm_cop2_save/restore
Rename macro nlm_cop2_enable() to nlm_cop2_enable_irqsave() and the macro nlm_cop2_restore to nlm_cop2_disable_irqrestore(). The new names will reflect the functionality better, and will make nlm_cop2_restore() available to be used later in COP2 save/restore patch. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Cc: ddaney.cavm@gmail.com Patchwork: https://patchwork.linux-mips.org/patch/5412/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/netlogic')
-rw-r--r--arch/mips/include/asm/netlogic/xlr/fmn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/netlogic/xlr/fmn.h b/arch/mips/include/asm/netlogic/xlr/fmn.h
index 56c7b85ea7dd..5604db3d1836 100644
--- a/arch/mips/include/asm/netlogic/xlr/fmn.h
+++ b/arch/mips/include/asm/netlogic/xlr/fmn.h
@@ -241,7 +241,7 @@ static inline void nlm_msgwait(unsigned int mask)
241/* 241/*
242 * Disable interrupts and enable COP2 access 242 * Disable interrupts and enable COP2 access
243 */ 243 */
244static inline uint32_t nlm_cop2_enable(void) 244static inline uint32_t nlm_cop2_enable_irqsave(void)
245{ 245{
246 uint32_t sr = read_c0_status(); 246 uint32_t sr = read_c0_status();
247 247
@@ -249,7 +249,7 @@ static inline uint32_t nlm_cop2_enable(void)
249 return sr; 249 return sr;
250} 250}
251 251
252static inline void nlm_cop2_restore(uint32_t sr) 252static inline void nlm_cop2_disable_irqrestore(uint32_t sr)
253{ 253{
254 write_c0_status(sr); 254 write_c0_status(sr);
255} 255}