x86: use WARN() in arch/x86/kernel
Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes part of the warning section for better reporting/collection. This also allowed the folding of some if()'s into the WARN() Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Cc: akpm@linux-foundation.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
0c072bb452
commit
bde78a79a6
@ -88,11 +88,9 @@ static __cpuinit void check_tsc_warp(void)
|
||||
__raw_spin_unlock(&sync_lock);
|
||||
}
|
||||
}
|
||||
if (!(now-start)) {
|
||||
printk("Warning: zero tsc calibration delta: %Ld [max: %Ld]\n",
|
||||
WARN(!(now-start),
|
||||
"Warning: zero tsc calibration delta: %Ld [max: %Ld]\n",
|
||||
now-start, end-start);
|
||||
WARN_ON(1);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user