mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 18:36:18 +07:00
cb850717b0
As part of addressing "y2038 problem" for in-kernel uses, this patch converts read_boot_clock() to read_boot_clock64() and read_persistent_clock() to read_persistent_clock64() using timespec64 by converting clock_access_fn to use timespec64. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Acked-by: Thierry Reding <treding@nvidia.com> (for tegra part) Cc: Russell King <rmk@dyn-67.arm.linux.org.uk> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1427945681-29972-7-git-send-email-john.stultz@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
20 lines
545 B
C
20 lines
545 B
C
/*
|
|
* arch/arm/include/asm/mach/time.h
|
|
*
|
|
* Copyright (C) 2004 MontaVista Software, Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_ARM_MACH_TIME_H
|
|
#define __ASM_ARM_MACH_TIME_H
|
|
|
|
extern void timer_tick(void);
|
|
|
|
typedef void (*clock_access_fn)(struct timespec64 *);
|
|
extern int register_persistent_clock(clock_access_fn read_boot,
|
|
clock_access_fn read_persistent);
|
|
|
|
#endif
|