[lkml]   [1999]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: printk
    "Richard B. Johnson" <> writes:

    |> Most kernel stuff has 'HZ' granularity so you get 'decimal' information
    |> easily like:
    |> cpu_time = whatever();
    |> printk("CPU = %lu.%lu\n", cpu_time/HZ, cpu_time % HZ);

    This gives misleading numbers in the output if HZ != 100. Even if HZ is
    100 the output is misleading if cpu_time % HZ < 10.

    Andreas Schwab "And now for something
    SuSE Labs completely different."
    SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

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