LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   What is CONFIG_GENERIC_TIME_VSYSCALL in kernel config? (https://www.linuxquestions.org/questions/linux-kernel-70/what-is-config_generic_time_vsyscall-in-kernel-config-925510/)

Quon 01-24-2012 02:56 PM

What is CONFIG_GENERIC_TIME_VSYSCALL in kernel config?
 
There is no help text for it.

jhwilliams 01-24-2012 05:12 PM

It is only used once in linux-stable, in ./include/linux/clocksource.h.

Code:

#ifdef CONFIG_GENERIC_TIME_VSYSCALL
extern void
update_vsyscall(struct timespec *ts, struct timespec *wtm,
            struct clocksource *c, u32 mult);
extern void update_vsyscall_tz(void);
#else
static inline void
update_vsyscall(struct timespec *ts, struct timespec *wtm,
            struct clocksource *c, u32 mult)
{
}

static inline void update_vsyscall_tz(void)
{
}
#endif

So obviously, if you don't have it defined, those functions do nothing.

On my system, those externs are defined in ./arch/x86/kernel/vsyscall_64.c. Have a look.


All times are GMT -5. The time now is 08:04 AM.