lkml.org 
[lkml]   [2012]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH] init: check printed flag to skip printing message
    Otherwise the 'Calibration skipped' message gets printed everytime a CPU is
    hotplugged in, cluttering console for systems that frequently hotplug CPUs.

    Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
    ---
    1 files changed, 2 insertions(+), 1 deletions(-)

    diff --git a/init/calibrate.c b/init/calibrate.c
    index 5f117ca..fda0a7b 100644
    --- a/init/calibrate.c
    +++ b/init/calibrate.c
    @@ -267,7 +267,8 @@ void __cpuinit calibrate_delay(void)

    if (per_cpu(cpu_loops_per_jiffy, this_cpu)) {
    lpj = per_cpu(cpu_loops_per_jiffy, this_cpu);
    - pr_info("Calibrating delay loop (skipped) "
    + if (!printed)
    + pr_info("Calibrating delay loop (skipped) "
    "already calibrated this CPU");
    } else if (preset_lpj) {
    lpj = preset_lpj;


    \
     
     \ /
      Last update: 2012-03-09 00:47    [W:0.023 / U:0.080 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site