Re: format_cpumask()

From: William Lee Irwin III
Date: Mon Nov 17 2003 - 19:01:50 EST


At some point in the past, I wrote:
>> I was trying to make it a NR_CPUS -bit integer with the
>> highest nybbles
>> printed first. What's your favorite alternative?

On Mon, Nov 17, 2003 at 03:56:34PM -0800, Luck, Tony wrote:
> The prettiest output format I can think of would be
> to pretend that we had enough bits for NR_CPUS. I.e.
> on a 128 cpu system, cpu0 looks like:
> 00000000000000000000000000000001
> and cpu 127 is:
> 80000000000000000000000000000000
> This is probably the messiest to implement :-(
> -Tony

This is actually what I was trying to do. It's why I started the
loop of printing out the hexadecimal unsigned long components with
for (k = sizeof(cpumask_t)/sizeof(long) - 1; k >= 0; --k);

except I posted ++k. Amended patch coming very shortly.


-- wli
-
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/