mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
alarmtimer: Fix posix-timer constification fallout
Some freezer related variables are only used when either CONFIG_POSIX_TIMER
or CONFIG_RTC_CLASS are enabled. Hide them when both are off.
Fixes: d3ba5a9a34
("posix-timers: Make posix_clocks immutable")
Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Christoph Helwig <hch@lst.de>
This commit is contained in:
parent
d3ba5a9a34
commit
b6b3b80fce
1 changed files with 2 additions and 0 deletions
|
@ -45,11 +45,13 @@ static struct alarm_base {
|
||||||
clockid_t base_clockid;
|
clockid_t base_clockid;
|
||||||
} alarm_bases[ALARM_NUMTYPE];
|
} alarm_bases[ALARM_NUMTYPE];
|
||||||
|
|
||||||
|
#if defined(CONFIG_POSIX_TIMERS) || defined(CONFIG_RTC_CLASS)
|
||||||
/* freezer information to handle clock_nanosleep triggered wakeups */
|
/* freezer information to handle clock_nanosleep triggered wakeups */
|
||||||
static enum alarmtimer_type freezer_alarmtype;
|
static enum alarmtimer_type freezer_alarmtype;
|
||||||
static ktime_t freezer_expires;
|
static ktime_t freezer_expires;
|
||||||
static ktime_t freezer_delta;
|
static ktime_t freezer_delta;
|
||||||
static DEFINE_SPINLOCK(freezer_delta_lock);
|
static DEFINE_SPINLOCK(freezer_delta_lock);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct wakeup_source *ws;
|
static struct wakeup_source *ws;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue