Re: [PATCH] [6/28] x86: MCE: Add machine check exception count in /proc/interrupts

From: Andi Kleen
Date: Wed Apr 08 2009 - 05:56:48 EST


Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx> writes:

> Andi Kleen wrote:
>> @@ -96,6 +97,12 @@
>> seq_printf(p, " Threshold APIC interrupts\n");
>> # endif
>> #endif
>> +#if defined(CONFIG_X86_MCE) && defined(CONFIG_X86_64)
>> + seq_printf(p, "%*s: ", prec, "MCE");
>> + for_each_online_cpu(j)
>> + seq_printf(p, "%10u ", per_cpu(mce_exception_count, j));
>> + seq_printf(p, " Machine check exceptions\n");
>> +#endif
>> seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
>> #if defined(CONFIG_X86_IO_APIC)
>> seq_printf(p, "%*s: %10u\n", prec, "MIS", atomic_read(&irq_mis_count));
>
> How about unifying ifdefs?

I did it this way because these are only temporary until the 32bit<->64bit merge
patch goes in too. So next patch would be to change it to X86_NEW_MCE and
then when the old 32bit machine check code is finally dropped one or two
releases later to just X86_MCE

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/