[lkml]   [2003]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: format_cpumask()
    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
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:58    [W:0.042 / U:6.392 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site