diff options
Diffstat (limited to 'arch/mips/kernel/mips-cpc.c')
-rw-r--r-- | arch/mips/kernel/mips-cpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/mips-cpc.c b/arch/mips/kernel/mips-cpc.c index 8af4d627b68b..566b8d2c092c 100644 --- a/arch/mips/kernel/mips-cpc.c +++ b/arch/mips/kernel/mips-cpc.c | |||
@@ -76,6 +76,12 @@ void mips_cpc_lock_other(unsigned int core) | |||
76 | spin_lock_irqsave(&per_cpu(cpc_core_lock, curr_core), | 76 | spin_lock_irqsave(&per_cpu(cpc_core_lock, curr_core), |
77 | per_cpu(cpc_core_lock_flags, curr_core)); | 77 | per_cpu(cpc_core_lock_flags, curr_core)); |
78 | write_cpc_cl_other(core << CPC_Cx_OTHER_CORENUM_SHF); | 78 | write_cpc_cl_other(core << CPC_Cx_OTHER_CORENUM_SHF); |
79 | |||
80 | /* | ||
81 | * Ensure the core-other region reflects the appropriate core & | ||
82 | * VP before any accesses to it occur. | ||
83 | */ | ||
84 | mb(); | ||
79 | } | 85 | } |
80 | 86 | ||
81 | void mips_cpc_unlock_other(void) | 87 | void mips_cpc_unlock_other(void) |