wrmsr(MSR_CU_DEF_ERR, low, high);
 }
 
-static u32 smca_get_block_address(unsigned int cpu, unsigned int bank,
-                                 unsigned int block)
+static u32 smca_get_block_address(unsigned int bank, unsigned int block)
 {
        u32 low, high;
        u32 addr = 0;
         * For SMCA enabled processors, BLKPTR field of the first MISC register
         * (MCx_MISC0) indicates presence of additional MISC regs set (MISC1-4).
         */
-       if (rdmsr_safe_on_cpu(cpu, MSR_AMD64_SMCA_MCx_CONFIG(bank), &low, &high))
+       if (rdmsr_safe(MSR_AMD64_SMCA_MCx_CONFIG(bank), &low, &high))
                goto out;
 
        if (!(low & MCI_CONFIG_MCAX))
                goto out;
 
-       if (!rdmsr_safe_on_cpu(cpu, MSR_AMD64_SMCA_MCx_MISC(bank), &low, &high) &&
+       if (!rdmsr_safe(MSR_AMD64_SMCA_MCx_MISC(bank), &low, &high) &&
            (low & MASK_BLKPTR_LO))
                addr = MSR_AMD64_SMCA_MCx_MISCy(bank, block - 1);
 
        return addr;
 }
 
-static u32 get_block_address(unsigned int cpu, u32 current_addr, u32 low, u32 high,
+static u32 get_block_address(u32 current_addr, u32 low, u32 high,
                             unsigned int bank, unsigned int block)
 {
        u32 addr = 0, offset = 0;
                return addr;
 
        if (mce_flags.smca)
-               return smca_get_block_address(cpu, bank, block);
+               return smca_get_block_address(bank, block);
 
        /* Fall back to method we used for older processors: */
        switch (block) {
                        smca_configure(bank, cpu);
 
                for (block = 0; block < NR_BLOCKS; ++block) {
-                       address = get_block_address(cpu, address, low, high, bank, block);
+                       address = get_block_address(address, low, high, bank, block);
                        if (!address)
                                break;
 
        if (err)
                goto out_free;
 recurse:
-       address = get_block_address(cpu, address, low, high, bank, ++block);
+       address = get_block_address(address, low, high, bank, ++block);
        if (!address)
                return 0;