mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 04:45:36 +07:00
b5f87f15e2
Move the C functions and definitions related to the idle state handling to arch/s390/include/asm/idle.h and arch/s390/kernel/idle.c. The function s390_get_idle_time is renamed to arch_cpu_idle_time and vtime_stop_cpu to enabled_wait. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
32 lines
827 B
C
32 lines
827 B
C
/*
|
|
* Copyright IBM Corp. 2003, 2012
|
|
* Virtual CPU timer
|
|
*
|
|
* Author(s): Jan Glauber <jan.glauber@de.ibm.com>
|
|
*/
|
|
|
|
#ifndef _ASM_S390_TIMER_H
|
|
#define _ASM_S390_TIMER_H
|
|
|
|
#define VTIMER_MAX_SLICE (0x7fffffffffffffffULL)
|
|
|
|
struct vtimer_list {
|
|
struct list_head entry;
|
|
u64 expires;
|
|
u64 interval;
|
|
void (*function)(unsigned long);
|
|
unsigned long data;
|
|
};
|
|
|
|
extern void init_virt_timer(struct vtimer_list *timer);
|
|
extern void add_virt_timer(struct vtimer_list *timer);
|
|
extern void add_virt_timer_periodic(struct vtimer_list *timer);
|
|
extern int mod_virt_timer(struct vtimer_list *timer, u64 expires);
|
|
extern int mod_virt_timer_periodic(struct vtimer_list *timer, u64 expires);
|
|
extern int del_virt_timer(struct vtimer_list *timer);
|
|
|
|
extern void init_cpu_vtimer(void);
|
|
extern void vtime_init(void);
|
|
|
|
#endif /* _ASM_S390_TIMER_H */
|