mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 07:05:20 +00:00
[PATCH] uml: ifdef a mode-specific function
uml_idle_timer is tt-mode only, so ifdef it as such to make it easier to spot when tt mode is killed. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
872aaa65a6
commit
bacf454918
2 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,6 @@ extern void init_flush_vm(void);
|
||||||
extern void *syscall_sp(void *t);
|
extern void *syscall_sp(void *t);
|
||||||
extern void syscall_trace(union uml_pt_regs *regs, int entryexit);
|
extern void syscall_trace(union uml_pt_regs *regs, int entryexit);
|
||||||
extern int hz(void);
|
extern int hz(void);
|
||||||
extern void uml_idle_timer(void);
|
|
||||||
extern unsigned int do_IRQ(int irq, union uml_pt_regs *regs);
|
extern unsigned int do_IRQ(int irq, union uml_pt_regs *regs);
|
||||||
extern int external_pid(void *t);
|
extern int external_pid(void *t);
|
||||||
extern void interrupt_end(void);
|
extern void interrupt_end(void);
|
||||||
|
|
|
@ -66,6 +66,7 @@ void switch_timers(int to_real)
|
||||||
errno);
|
errno);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef UML_CONFIG_MODE_TT
|
||||||
void uml_idle_timer(void)
|
void uml_idle_timer(void)
|
||||||
{
|
{
|
||||||
if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR)
|
if(signal(SIGVTALRM, SIG_IGN) == SIG_ERR)
|
||||||
|
@ -75,6 +76,7 @@ void uml_idle_timer(void)
|
||||||
SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1);
|
SA_RESTART, SIGUSR1, SIGIO, SIGWINCH, SIGVTALRM, -1);
|
||||||
set_interval(ITIMER_REAL);
|
set_interval(ITIMER_REAL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned long long os_nsecs(void)
|
unsigned long long os_nsecs(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue