mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
Some code, for example clocksource drivers, may want to use the vDSO clockmode constants even when CONFIG_GENERIC_GETTIMEOFDAY=n. But the symbols are completely hidden in that case, making ugly ifdeffery necessary. Always provide the enum definitions. As not all architectures provide asm/vdso/clocksource.h, provide an empty stub in asm-generic for it. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://patch.msgid.link/[email protected]
21 lines
396 B
C
21 lines
396 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __VDSO_CLOCKSOURCE_H
|
|
#define __VDSO_CLOCKSOURCE_H
|
|
|
|
#include <vdso/limits.h>
|
|
|
|
#include <asm/vdso/clocksource.h>
|
|
|
|
enum vdso_clock_mode {
|
|
VDSO_CLOCKMODE_NONE,
|
|
#ifdef VDSO_ARCH_CLOCKMODES
|
|
VDSO_ARCH_CLOCKMODES,
|
|
#endif
|
|
VDSO_CLOCKMODE_MAX,
|
|
|
|
/* Indicator for time namespace VDSO */
|
|
VDSO_CLOCKMODE_TIMENS = INT_MAX
|
|
};
|
|
|
|
#endif /* __VDSO_CLOCKSOURCE_H */
|