hrtimer: Untangle base definitions from hrtimer.h
Subsystems (6)
cover hrtimer: Untangle base definitions from hrtimer.h
Currently the hrtimer base structure definitions are included from the widely used linux/hrtimer.h header.
Any change to the base structures will trigger a nearly full rebuild.
That inclusion is not really necessary as nearly no user needs the base bits anyways.
---
Thomas Weißschuh (Schneider Electric) (8):
hrtimer: Rename hrtimer_defs.h to hrtimer_bases.h
hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h
hrtimer: Move hrtimer_update_function() to hrtimer.c
tick: Explicitly include linux/hrtimer_bases.h
hrtimer: Explicitly include linux/hrtimer_bases.h
hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h x86/speculation: Explicitly include linux/types.h
hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
arch/x86/include/asm/nospec-branch.h | 1 +
include/linux/hrtimer.h | 34 ++---------------------
include/linux/{hrtimer_defs.h => hrtimer_bases.h} | 14 ++++++++--
include/linux/hrtimer_rearm.h | 5 ++++
kernel/sched/fair.c | 2 ++
kernel/time/hrtimer.c | 25 +++++++++++++++++
kernel/time/tick-internal.h | 1 +
sound/drivers/dummy.c | 1 +
8 files changed, 49 insertions(+), 34 deletions(-)---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260626-hrtimer-header-dependencies-5a7d2ddff43f
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>
PATCH 1/8 hrtimer: Rename hrtimer_defs.h to hrtimer_bases.h
This header was originally added for #defines and was later extended with the hrtimer base structures. All the #defines have been removed in the meantime, so the naming is off now.
Rename the header to fit its contents more.
This will also make the upcoming addition of some functions nicer.
---
include/linux/hrtimer.h | 2 +-
include/linux/{hrtimer_defs.h => hrtimer_bases.h} | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)include/linux/hrtimer.h +1 -1
@@ -12,7 +12,7 @@#ifndef _LINUX_HRTIMER_H#define _LINUX_HRTIMER_H -#include <linux/hrtimer_defs.h> +#include <linux/hrtimer_bases.h> #include <linux/hrtimer_rearm.h> #include <linux/hrtimer_types.h> #include <linux/init.h>
include/linux/hrtimer_bases.h renamed from include/linux/hrtimer_defs.h +2 -2
@@ -1,6 +1,6 @@/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef _LINUX_HRTIMER_DEFS_H -#define _LINUX_HRTIMER_DEFS_H +#ifndef _LINUX_HRTIMER_BASES_H +#define _LINUX_HRTIMER_BASES_H#include <linux/ktime.h> #include <linux/timerqueue.h>
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Rename hrtimer_defs.h to hrtimer_bases.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 03b5d4c2798234d9ee3c4a719a2fefe785a6aec4 Gitweb: https://git.kernel.org/tip/03b5d4c2798234d9ee3c4a719a2fefe785a6aec4 Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:41:58 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:44 +02:00
hrtimer: Rename hrtimer_defs.h to hrtimer_bases.h
This header was originally added for #defines and was later extended with the hrtimer base structures. All the #defines have been removed in the meantime, so the naming is off now.
Rename the header to fit its contents more.
This will also make the upcoming addition of some functions nicer.
--- include/linux/hrtimer.h | 2 +- include/linux/hrtimer_bases.h | 113 +++++++++++++++++++++++++++++++++- include/linux/hrtimer_defs.h | 113 +--------------------------------- 3 files changed, 114 insertions(+), 114 deletions(-) create mode 100644 include/linux/hrtimer_bases.h delete mode 100644 include/linux/hrtimer_defs.h
include/linux/hrtimer.h +1 -1
@@ -12,7 +12,7 @@#ifndef _LINUX_HRTIMER_H#define _LINUX_HRTIMER_H -#include <linux/hrtimer_defs.h> +#include <linux/hrtimer_bases.h> #include <linux/hrtimer_rearm.h> #include <linux/hrtimer_types.h> #include <linux/init.h>
include/linux/hrtimer_bases.h new file +113 -0
113 lines not on this page · raw message
include/linux/hrtimer_defs.h deleted +0 -113
113 lines not on this page · raw message
PATCH 2/8 hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h
In reply to Thomas Weißschuh (Schneider Electric)The usage of the hrtimer base introduces a dependency on the timer base structure definitions from the widely-used hrtimer.h.
Move the helper to hrtimer_bases.h to trim this dependency.
Also adapt the two only callers to now include hrtimer_bases.h.
--- include/linux/hrtimer.h | 9 --------- include/linux/hrtimer_bases.h | 10 ++++++++++ kernel/sched/fair.c | 2 ++ sound/drivers/dummy.c | 1 + 4 files changed, 13 insertions(+), 9 deletions(-)
include/linux/hrtimer.h +0 -9
@@ -287,15 +287,6 @@ static inline bool hrtimer_is_queued(struct hrtimer *timer)return READ_ONCE (timer->is_queued); } -/* -* Helper function to check, whether the timer is running the callback -* function -*/ -static inline int hrtimer_callback_running (struct hrtimer *timer) -{ -return timer->base->running == timer; -} -/** * hrtimer_update_function - Update the timer's callback function * @timer: Timer to update
include/linux/hrtimer_bases.h +10 -0
@@ -2,6 +2,7 @@#ifndef _LINUX_HRTIMER_BASES_H#define _LINUX_HRTIMER_BASES_H +#include <linux/hrtimer.h> #include <linux/ktime.h> #include <linux/timerqueue.h> #include <linux/seqlock.h>
@@ -110,4 +111,13 @@ struct hrtimer_cpu_base { } ____cacheline_aligned; +/* +* Helper function to check, whether the timer is running the callback +* function +*/ +static inline int hrtimer_callback_running (struct hrtimer *timer) +{ +return timer->base->running == timer; +} +#endif
kernel/sched/fair.c +2 -0
@@ -26,6 +26,8 @@#include <linux/jiffies.h> #include <linux/mm_api.h> #include <linux/highmem.h> +#include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/spinlock_api.h> #include <linux/cpumask_api.h> #include <linux/lockdep_api.h>
sound/drivers/dummy.c +1 -0
@@ -13,6 +13,7 @@#include <linux/time.h> #include <linux/wait.h> #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/math64.h> #include <linux/module.h> #include <sound/core.h>
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: d3dc7fabd4c4a3baaa7e7bfa84558fedad699580 Gitweb: https://git.kernel.org/tip/d3dc7fabd4c4a3baaa7e7bfa84558fedad699580 Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:41:59 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:44 +02:00
hrtimer: Move hrtimer_callback_running() to hrtimer_bases.h
The usage of the hrtimer base introduces a dependency on the timer base structure definitions from the widely-used hrtimer.h.
Move the helper to hrtimer_bases.h to trim this dependency.
Also adapt the two only callers to now include hrtimer_bases.h.
--- include/linux/hrtimer.h | 9 --------- include/linux/hrtimer_bases.h | 10 ++++++++++ kernel/sched/fair.c | 2 ++ sound/drivers/dummy.c | 1 + 4 files changed, 13 insertions(+), 9 deletions(-)
include/linux/hrtimer.h +0 -9
@@ -287,15 +287,6 @@ static inline bool hrtimer_is_queued(struct hrtimer *timer)return READ_ONCE (timer->is_queued); } -/* -* Helper function to check, whether the timer is running the callback -* function -*/ -static inline int hrtimer_callback_running (struct hrtimer *timer) -{ -return timer->base->running == timer; -} -/** * hrtimer_update_function - Update the timer's callback function * @timer: Timer to update
include/linux/hrtimer_bases.h +10 -0
@@ -2,6 +2,7 @@#ifndef _LINUX_HRTIMER_BASES_H#define _LINUX_HRTIMER_BASES_H +#include <linux/hrtimer.h> #include <linux/ktime.h> #include <linux/timerqueue.h> #include <linux/seqlock.h>
@@ -110,4 +111,13 @@ struct hrtimer_cpu_base { } ____cacheline_aligned; +/* +* Helper function to check, whether the timer is running the callback +* function +*/ +static inline int hrtimer_callback_running (struct hrtimer *timer) +{ +return timer->base->running == timer; +} +#endif
kernel/sched/fair.c +2 -0
@@ -26,6 +26,8 @@#include <linux/jiffies.h> #include <linux/mm_api.h> #include <linux/highmem.h> +#include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/spinlock_api.h> #include <linux/cpumask_api.h> #include <linux/lockdep_api.h>
sound/drivers/dummy.c +1 -0
@@ -13,6 +13,7 @@#include <linux/time.h> #include <linux/wait.h> #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/math64.h> #include <linux/module.h> #include <sound/core.h>
PATCH 3/8 hrtimer: Move hrtimer_update_function() to hrtimer.c
In reply to Thomas Weißschuh (Schneider Electric)The usage of the timer base forces hrtimer.h to also expose the base structure definitions.
Move the function to hrtimer.c to avoid this.
--- include/linux/hrtimer.h | 24 ++---------------------- kernel/time/hrtimer.c | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 22 deletions(-)
include/linux/hrtimer.h +2 -22
@@ -287,28 +287,8 @@ static inline bool hrtimer_is_queued(struct hrtimer *timer)return READ_ONCE (timer->is_queued); } -/** -* hrtimer_update_function - Update the timer's callback function -* @timer: Timer to update -* @function: New callback function -* -* Only safe to call if the timer is not enqueued. Can be called in the callback function if the -* timer is not enqueued at the same time (see the comments above HRTIMER_STATE_ENQUEUED). -*/ -static inline void hrtimer_update_function (struct hrtimer *timer, -enum hrtimer_restart (*function)(struct hrtimer *)) -{ -#ifdef CONFIG_PROVE_LOCKING -guard (raw_spinlock_irqsave)(&timer->base->cpu_base->lock); - -if (WARN_ON_ONCE (hrtimer_is_queued (timer))) -return ; - -if (WARN_ON_ONCE (!function)) -return ; -#endif -ACCESS_PRIVATE (timer, function) = function; -} +void hrtimer_update_function (struct hrtimer *timer, +enum hrtimer_restart (*function)(struct hrtimer *));/* Forward a hrtimer so it expires after now: */ extern u64
kernel/time/hrtimer.c +24 -0
@@ -1039,6 +1039,30 @@ static inline void unlock_hrtimer_base(const struct hrtimer *timer, unsigned lonraw_spin_unlock_irqrestore (&timer->base->cpu_base->lock, *flags); } +/** +* hrtimer_update_function - Update the timer's callback function +* @timer: Timer to update +* @function: New callback function +* +* Only safe to call if the timer is not enqueued. Can be called in the callback function if the +* timer is not enqueued at the same time (see the comments above HRTIMER_STATE_ENQUEUED). +*/ +void hrtimer_update_function (struct hrtimer *timer, +enum hrtimer_restart (*function)(struct hrtimer *)) +{ +#ifdef CONFIG_PROVE_LOCKING +guard (raw_spinlock_irqsave)(&timer->base->cpu_base->lock); + +if (WARN_ON_ONCE (hrtimer_is_queued (timer))) +return ; + +if (WARN_ON_ONCE (!function)) +return ; +#endif +ACCESS_PRIVATE (timer, function) = function; +} +EXPORT_SYMBOL_GPL (hrtimer_update_function); +/** * hrtimer_forward() - forward the timer expiry * @timer: hrtimer to forward
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Move hrtimer_update_function() to hrtimer.c
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: a116c7582d7f7701736801a47e3432eb7cabd674 Gitweb: https://git.kernel.org/tip/a116c7582d7f7701736801a47e3432eb7cabd674 Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:00 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:44 +02:00
hrtimer: Move hrtimer_update_function() to hrtimer.c
The usage of the hrtimer base forces hrtimer.h to also expose the base structure definitions.
Move the function to hrtimer.c to avoid this.
--- include/linux/hrtimer.h | 24 ++---------------------- kernel/time/hrtimer.c | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 22 deletions(-)
include/linux/hrtimer.h +2 -22
@@ -287,28 +287,8 @@ static inline bool hrtimer_is_queued(struct hrtimer *timer)return READ_ONCE (timer->is_queued); } -/** -* hrtimer_update_function - Update the timer's callback function -* @timer: Timer to update -* @function: New callback function -* -* Only safe to call if the timer is not enqueued. Can be called in the callback function if the -* timer is not enqueued at the same time (see the comments above HRTIMER_STATE_ENQUEUED). -*/ -static inline void hrtimer_update_function (struct hrtimer *timer, -enum hrtimer_restart (*function)(struct hrtimer *)) -{ -#ifdef CONFIG_PROVE_LOCKING -guard (raw_spinlock_irqsave)(&timer->base->cpu_base->lock); - -if (WARN_ON_ONCE (hrtimer_is_queued (timer))) -return ; - -if (WARN_ON_ONCE (!function)) -return ; -#endif -ACCESS_PRIVATE (timer, function) = function; -} +void hrtimer_update_function (struct hrtimer *timer, +enum hrtimer_restart (*function)(struct hrtimer *));/* Forward a hrtimer so it expires after now: */ extern u64
kernel/time/hrtimer.c +24 -0
@@ -1040,6 +1040,30 @@ static inline void unlock_hrtimer_base(const struct hrtimer *timer, unsigned lon }/** +* hrtimer_update_function - Update the timer's callback function +* @timer: Timer to update +* @function: New callback function +* +* Only safe to call if the timer is not enqueued. Can be called in the callback function if the +* timer is not enqueued at the same time (see the comments above HRTIMER_STATE_ENQUEUED). +*/ +void hrtimer_update_function (struct hrtimer *timer, +enum hrtimer_restart (*function)(struct hrtimer *)) +{ +#ifdef CONFIG_PROVE_LOCKING +guard (raw_spinlock_irqsave)(&timer->base->cpu_base->lock); + +if (WARN_ON_ONCE (hrtimer_is_queued (timer))) +return ; + +if (WARN_ON_ONCE (!function)) +return ; +#endif +ACCESS_PRIVATE (timer, function) = function; +} +EXPORT_SYMBOL_GPL (hrtimer_update_function); + +/** * hrtimer_forward() - forward the timer expiry * @timer: hrtimer to forward * @now: forward past this time
PATCH 4/8 tick: Explicitly include linux/hrtimer_bases.h
In reply to Thomas Weißschuh (Schneider Electric)This header uses some definitions from linux/hrtimer_bases.h. Currently this header is included transitively, which will change.
Include the header explicitly.
--- kernel/time/tick-internal.h | 1 + 1 file changed, 1 insertion(+)
kernel/time/tick-internal.h +1 -0
@@ -3,6 +3,7 @@* tick internal variable and functions used by low/high res code */ #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/tick.h> #include "timekeeping.h"
Signature · 1 line
2.55.0
[tip: timers/core] tick: Explicitly include linux/hrtimer_bases.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 73fcec09d1629afa8819a866518cc0e8d58a7ece Gitweb: https://git.kernel.org/tip/73fcec09d1629afa8819a866518cc0e8d58a7ece Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:01 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:44 +02:00
tick: Explicitly include linux/hrtimer_bases.h
This header uses some definitions from linux/hrtimer_bases.h. Currently this header is included transitively, which will change.
Include the header explicitly.
--- kernel/time/tick-internal.h | 1 + 1 file changed, 1 insertion(+)
kernel/time/tick-internal.h +1 -0
@@ -3,6 +3,7 @@* tick internal variable and functions used by low/high res code */ #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/tick.h> #include "timekeeping.h"
PATCH 5/8 hrtimer: Explicitly include linux/hrtimer_bases.h
In reply to Thomas Weißschuh (Schneider Electric)This header uses some definitions from linux/hrtimer_bases.h. Currently this header is included transitively, which will change.
Include the header explicitly.
--- kernel/time/hrtimer.c | 1 + 1 file changed, 1 insertion(+)
kernel/time/hrtimer.c +1 -0
@@ -26,6 +26,7 @@#include <linux/export.h> #include <linux/percpu.h> #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/notifier.h> #include <linux/syscalls.h> #include <linux/interrupt.h>
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Explicitly include linux/hrtimer_bases.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 95cf8bbadd103944c35c55e8c4cb85fa9a4ae84b Gitweb: https://git.kernel.org/tip/95cf8bbadd103944c35c55e8c4cb85fa9a4ae84b Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:02 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:44 +02:00
hrtimer: Explicitly include linux/hrtimer_bases.h
This header uses some definitions from linux/hrtimer_bases.h. Currently this header is included transitively, which will change.
Include the header explicitly.
--- kernel/time/hrtimer.c | 1 + 1 file changed, 1 insertion(+)
kernel/time/hrtimer.c +1 -0
@@ -26,6 +26,7 @@#include <linux/export.h> #include <linux/percpu.h> #include <linux/hrtimer.h> +#include <linux/hrtimer_bases.h> #include <linux/notifier.h> #include <linux/syscalls.h> #include <linux/interrupt.h>
PATCH 6/8 hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h
In reply to Thomas Weißschuh (Schneider Electric)Multiple used types and symbols are only visible through transitive dependency chains.
Include the headers explicitly as those chains are going to go away.
--- include/linux/hrtimer_rearm.h | 5 +++++ 1 file changed, 5 insertions(+)
include/linux/hrtimer_rearm.h +5 -0
@@ -2,7 +2,12 @@#ifndef _LINUX_HRTIMER_REARM_H#define _LINUX_HRTIMER_REARM_H +#include <linux/types.h> +#ifdef CONFIG_HRTIMER_REARM_DEFERRED +#include <linux/irqflags.h> +#include <linux/lockdep.h> +#include <linux/preempt.h> #include <linux/thread_info.h> void __hrtimer_rearm_deferred (void );
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 071993aac72ea8e6f9986bf41101974e8faa2eca Gitweb: https://git.kernel.org/tip/071993aac72ea8e6f9986bf41101974e8faa2eca Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:03 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:45 +02:00
hrtimer: Explicitly include some necessary headers in hrtimer_rearm.h
Multiple used types and symbols are only visible through transitive dependency chains.
Include the headers explicitly as those chains are going to go away.
--- include/linux/hrtimer_rearm.h | 5 +++++ 1 file changed, 5 insertions(+)
include/linux/hrtimer_rearm.h +5 -0
@@ -2,7 +2,12 @@#ifndef _LINUX_HRTIMER_REARM_H#define _LINUX_HRTIMER_REARM_H +#include <linux/types.h> +#ifdef CONFIG_HRTIMER_REARM_DEFERRED +#include <linux/irqflags.h> +#include <linux/lockdep.h> +#include <linux/preempt.h> #include <linux/thread_info.h> void __hrtimer_rearm_deferred (void );
PATCH 7/8 x86/speculation: Explicitly include linux/types.h
In reply to Thomas Weißschuh (Schneider Electric)The usage of 'bool' requires linux/types.h, which is currently only included through a transitive dependency chain.
Include linux/types.h as that chain is going to go away.
--- arch/x86/include/asm/nospec-branch.h | 1 + 1 file changed, 1 insertion(+)
arch/x86/include/asm/nospec-branch.h +1 -0
@@ -6,6 +6,7 @@#include <linux/static_key.h> #include <linux/objtool.h> #include <linux/linkage.h> +#include <linux/types.h> #include <asm/alternative.h> #include <asm/cpufeatures.h>
Signature · 1 line
2.55.0
[tip: timers/core] x86/speculation: Explicitly include linux/types.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 0c31af3d23e62b2ac0622bc6592793e21f915657 Gitweb: https://git.kernel.org/tip/0c31af3d23e62b2ac0622bc6592793e21f915657 Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:04 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:45 +02:00
x86/speculation: Explicitly include linux/types.h
The usage of 'bool' requires linux/types.h, which is currently only included through a transitive dependency chain.
Include linux/types.h as that chain is going to go away.
--- arch/x86/include/asm/nospec-branch.h | 1 + 1 file changed, 1 insertion(+)
arch/x86/include/asm/nospec-branch.h +1 -0
@@ -6,6 +6,7 @@#include <linux/static_key.h> #include <linux/objtool.h> #include <linux/linkage.h> +#include <linux/types.h> #include <asm/alternative.h> #include <asm/cpufeatures.h>
PATCH 8/8 hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
In reply to Thomas Weißschuh (Schneider Electric)hrtimer.h is used all over the kernel. Any change to hrtimer_bases.h effectively triggers a full rebuild.
As all logical dependencies from hrtimer.h to hrtimer_bases.h have been removed, the inclusion is now unncessary. Remove it.
Fix up some other files which happen to rely some transitive inclusions.
--- include/linux/hrtimer.h | 1 - 1 file changed, 1 deletion(-)
include/linux/hrtimer.h +0 -1
@@ -12,7 +12,6 @@#ifndef _LINUX_HRTIMER_H#define _LINUX_HRTIMER_H -#include <linux/hrtimer_bases.h> #include <linux/hrtimer_rearm.h> #include <linux/hrtimer_types.h> #include <linux/init.h>
Signature · 1 line
2.55.0
[tip: timers/core] hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: faef65e45a2a03f1fa32bc4e55c11d79f6aaae6f Gitweb: https://git.kernel.org/tip/faef65e45a2a03f1fa32bc4e55c11d79f6aaae6f Author: Thomas Weißschuh (Schneider Electric) <[email protected]> AuthorDate: Thu, 02 Jul 2026 11:42:05 +02:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Tue, 07 Jul 2026 23:43:45 +02:00
hrtimer: Remove inclusion of hrtimer_bases.h remove from hrtimer.h
hrtimer.h is used all over the kernel. Any change to hrtimer_bases.h effectively triggers a full rebuild.
As all logical dependencies from hrtimer.h to hrtimer_bases.h have been removed, the inclusion is now unncessary. Remove it.
--- include/linux/hrtimer.h | 1 - 1 file changed, 1 deletion(-)
include/linux/hrtimer.h +0 -1
@@ -12,7 +12,6 @@#ifndef _LINUX_HRTIMER_H#define _LINUX_HRTIMER_H -#include <linux/hrtimer_bases.h> #include <linux/hrtimer_rearm.h> #include <linux/hrtimer_types.h> #include <linux/init.h>