mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 09:02:21 -04:00
hrtimer: Mark index and clockid of clock base as const
These fields are initialized once and are never supposed to change. Mark them as const to make this explicit. Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-10-095357392669@linutronix.de
This commit is contained in:
committed by
Thomas Gleixner
parent
bd803783df
commit
f12ef5cb4e
@@ -26,8 +26,8 @@
|
||||
*/
|
||||
struct hrtimer_clock_base {
|
||||
struct hrtimer_cpu_base *cpu_base;
|
||||
unsigned int index;
|
||||
clockid_t clockid;
|
||||
const unsigned int index;
|
||||
const clockid_t clockid;
|
||||
seqcount_raw_spinlock_t seq;
|
||||
ktime_t expires_next;
|
||||
struct hrtimer *running;
|
||||
|
||||
Reference in New Issue
Block a user