summaryrefslogtreecommitdiff
path: root/include/linux/sched_clock.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-09-23 20:42:44 +0200
committerIngo Molnar <mingo@kernel.org>2022-02-23 08:21:32 +0100
commitd0b9d6dcaa5ac480c272683919f387cc6d82b638 (patch)
tree91cbec88a73e92dfe7502827be6d1c713042cd25 /include/linux/sched_clock.h
parent6255b48aebfd4dff375e97fc8b075a235848db0b (diff)
sched/headers: Fix header to build standalone: <linux/sched_clock.h>
Uses various kernel types that don't build standalone. Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'include/linux/sched_clock.h')
-rw-r--r--include/linux/sched_clock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched_clock.h b/include/linux/sched_clock.h
index 835ee87ed792..cb41c5edb4d4 100644
--- a/include/linux/sched_clock.h
+++ b/include/linux/sched_clock.h
@@ -5,6 +5,8 @@
#ifndef LINUX_SCHED_CLOCK
#define LINUX_SCHED_CLOCK
+#include <linux/types.h>
+
#ifdef CONFIG_GENERIC_SCHED_CLOCK
/**
* struct clock_read_data - data required to read from sched_clock()