mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
a439fe51a1
The majority of this patch was created by the following script: *** ASM=arch/sparc/include/asm mkdir -p $ASM git mv include/asm-sparc64/ftrace.h $ASM git rm include/asm-sparc64/* git mv include/asm-sparc/* $ASM sed -ie 's/asm-sparc64/asm/g' $ASM/* sed -ie 's/asm-sparc/asm/g' $ASM/* *** The rest was an update of the top-level Makefile to use sparc for header files when sparc64 is being build. And a small fixlet to pick up the correct unistd.h from sparc64 code. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
25 lines
467 B
C
25 lines
467 B
C
/* include/asm/bugs.h: Sparc probes for various bugs.
|
|
*
|
|
* Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
|
|
*/
|
|
|
|
#ifdef CONFIG_SPARC32
|
|
#include <asm/cpudata.h>
|
|
#endif
|
|
|
|
#ifdef CONFIG_SPARC64
|
|
#include <asm/sstate.h>
|
|
#endif
|
|
|
|
extern unsigned long loops_per_jiffy;
|
|
|
|
static void __init check_bugs(void)
|
|
{
|
|
#if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
|
|
cpu_data(0).udelay_val = loops_per_jiffy;
|
|
#endif
|
|
#ifdef CONFIG_SPARC64
|
|
sstate_running();
|
|
#endif
|
|
}
|