Re: [PATCH] x86, mce: disable MCE if cpu has no MCE banks

From: Roland Dreier
Date: Wed Oct 28 2009 - 14:03:17 EST



> > But would we want to accumulate all the different combinations of banks
> > along with a CPU mask and then print something like:
> >
> > CPUs 0 4: MCA banks CMCI:2 CMCI:3 CMCI:5 CMCI:6 SHD:8
> > CPUs 1 2 3 5 6 7: MCA banks CMCI:2 CMCI:3 CMCI:5 SHD:6 SHD:8
> > CPUs 8 9 10 11 12 13 14 15: MCA banks SHD:2 SHD:3 SHD:5 SHD:6 SHD:8
>
> Or use a cpumask and cpulist_scnprintf which condenses the cpu list nicely.

Thanks! I didn't know about that API.

However with that said I think the real issue is whether that style of
output is a good idea, no matter how nicely the CPU list is formatted :)

- R.
--
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/