summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2015-04-21 11:36:02 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-12 21:28:23 -0700
commit231f31db13349418dbdc49e90253e35a78dce656 (patch)
tree0f4dd73edcf4724fb79972b6fdd5f5f0c0739fbd /drivers/soc
parentead860610171b4f579dca6a8851047371c0050fb (diff)
soc: qcom: cache_m4m_erp64: Use raw_smp_processor_id()
Replace calls to smp_processor_id() with raw_smp_processor_id() to avoid extraneous warnings on the error handling paths. Change-Id: Ie1f4dd448aa04302e1eb0865e0373f9a2b91848c Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/qcom/cache_m4m_erp64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/soc/qcom/cache_m4m_erp64.c b/drivers/soc/qcom/cache_m4m_erp64.c
index 16e644bdc045..7ffe0bbafa93 100644
--- a/drivers/soc/qcom/cache_m4m_erp64.c
+++ b/drivers/soc/qcom/cache_m4m_erp64.c
@@ -169,7 +169,7 @@ static DEFINE_PER_CPU(struct msm_l1_err_stats, msm_l1_erp_stats);
static void msm_erp_show_icache_error(void)
{
u64 icesr;
- int cpu = smp_processor_id();
+ int cpu = raw_smp_processor_id();
icesr = erp_mrs(ICESR_EL1);
if (!(icesr & (ICESR_BIT_L0TPE | ICESR_BIT_L0DPE | ICESR_BIT_L1TPE |
@@ -200,7 +200,7 @@ clear_out:
static void msm_erp_show_dcache_error(void)
{
u64 dcesr;
- int cpu = smp_processor_id();
+ int cpu = raw_smp_processor_id();
dcesr = erp_mrs(DCESR_EL1);
if (!(dcesr & (DCESR_BIT_L1VTPE | DCESR_BIT_L1PTPE | DCESR_BIT_L1DPE |
@@ -247,7 +247,7 @@ static void msm_l2_erp_local_handler(void *force)
parity_ue = esr0 & L2ESR0_UE;
parity_ce = esr0 & L2ESR0_CE;
misc_ue = esr1;
- cpu = smp_processor_id();
+ cpu = raw_smp_processor_id();
if (force || parity_ue || parity_ce || misc_ue) {
if (parity_ue)
@@ -342,7 +342,7 @@ static irqreturn_t msm_m4m_erp_irq(int irq, void *dev_id)
{
u32 m4m_status;
- pr_alert("CPU%d: M4M error detected\n", smp_processor_id());
+ pr_alert("CPU%d: M4M error detected\n", raw_smp_processor_id());
m4m_status = readl_relaxed(m4m_base + M4M_ERR_STATUS);
pr_alert("M4M_ERR_STATUS 0x%0x\n", m4m_status);
if ((m4m_status & M4M_ERR_STATUS_MASK) &