1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* include/asm/bugs.h: Sparc probes for various bugs.
3 *
4 * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
5 */
6
7 #ifdef CONFIG_SPARC32
8 #include <asm/cpudata.h>
9 #endif
10
11 extern unsigned long loops_per_jiffy;
12
13 static void __init check_bugs(void)
14 {
15 #if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
16 cpu_data(0).udelay_val = loops_per_jiffy;
17 #endif
18 }