Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* include/asm/bugs.h:  Sparc probes for various bugs.
0003  *
0004  * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
0005  */
0006 
0007 #ifdef CONFIG_SPARC32
0008 #include <asm/cpudata.h>
0009 #endif
0010 
0011 extern unsigned long loops_per_jiffy;
0012 
0013 static void __init check_bugs(void)
0014 {
0015 #if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
0016     cpu_data(0).udelay_val = loops_per_jiffy;
0017 #endif
0018 }