From 982b8cc116118b3463d3f332581945625722acd8 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 09 Jan 2024 02:10:54 +0000 Subject: [PATCH] add poweroff command --- kernel/kernel/time/timekeeping_internal.h | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/kernel/time/timekeeping_internal.h b/kernel/kernel/time/timekeeping_internal.h index bcbb52d..4ca2787 100644 --- a/kernel/kernel/time/timekeeping_internal.h +++ b/kernel/kernel/time/timekeeping_internal.h @@ -1,12 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TIMEKEEPING_INTERNAL_H #define _TIMEKEEPING_INTERNAL_H + +#include <linux/clocksource.h> +#include <linux/spinlock.h> +#include <linux/time.h> + /* * timekeeping debug functions */ -#include <linux/clocksource.h> -#include <linux/time.h> - #ifdef CONFIG_DEBUG_FS extern void tk_debug_account_sleep_time(const struct timespec64 *t); #else @@ -31,4 +33,7 @@ } #endif +/* Semi public for serialization of non timekeeper VDSO updates. */ +extern raw_spinlock_t timekeeper_lock; + #endif /* _TIMEKEEPING_INTERNAL_H */ -- Gitblit v1.6.2