Re: [PATCH 1/3] x86: modify show_shared_cpu_map in intel_cacheinfov3

From: Paul Jackson
Date: Thu Apr 10 2008 - 13:36:18 EST


Bert wrote:
> I think its easier to count the commas from a cpumask file.

My user level code determines NR_CPUS and MAX_NUMNODES from 32/9 times
the strlen() of the values of the Cpus_allowed and Mems_allowed fields
in /proc/self/status (being careful to -include- the trailing newline
in the strlen.)

--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.940.382.4214
--
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/