mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-24 18:38:38 +00:00
0299b1371d
This patch converts sparc (specifically sparc32) to use GENERIC_TIME via the arch_getoffset() infrastructure, reducing the amount of arch specific code we need to maintain. The sparc architecture is one of the last 3 arches that need to be converted. This patch applies on top of Linus' current -git tree I've taken my best swing at converting this, but I'm not 100% confident I got it right. My cross-compiler is now out of date (gcc4.2) so I wasn't able to check if it compiled. Any assistance from arch maintainers or testers to get this merged would be great. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
17 lines
356 B
C
17 lines
356 B
C
/*
|
|
* linux/include/asm/timex.h
|
|
*
|
|
* sparc architecture timex specifications
|
|
*/
|
|
#ifndef _ASMsparc_TIMEX_H
|
|
#define _ASMsparc_TIMEX_H
|
|
|
|
#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
|
|
|
|
/* XXX Maybe do something better at some point... -DaveM */
|
|
typedef unsigned long cycles_t;
|
|
#define get_cycles() (0)
|
|
|
|
extern u32 (*do_arch_gettimeoffset)(void);
|
|
#endif
|