mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 07:26:39 +07:00
9bc1aaeac0
Split the timer pending code out to a seperate per-machine header so that when compiling for mach-s3c2410 or mach-s3c24a0 we can use the right timer code without having to #ifdef the timer driver. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
16 lines
375 B
C
16 lines
375 B
C
/* linux/arch/arm/mach-s3c24a0/include/mach/tick.h
|
|
*
|
|
* Copyright 2008 Simtec Electronics
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
* http://armlinux.simtec.co.uk/
|
|
*
|
|
* S3C24A0 - timer tick support
|
|
*/
|
|
|
|
#define SUBSRC_TIMER4 (1 << (IRQ_TIMER4 - IRQ_S3CUART_RX0))
|
|
|
|
static inline int s3c24xx_ostimer_pending(void)
|
|
{
|
|
return __raw_readl(S3C2410_SUBSRCPND) & SUBSRC_TIMER4;
|
|
}
|