|
@@ -36,16 +36,17 @@
|
|
*/
|
|
*/
|
|
static DEFINE_PER_CPU(struct tick_sched, tick_cpu_sched);
|
|
static DEFINE_PER_CPU(struct tick_sched, tick_cpu_sched);
|
|
|
|
|
|
-/*
|
|
|
|
- * The time, when the last jiffy update happened. Protected by jiffies_lock.
|
|
|
|
- */
|
|
|
|
-static ktime_t last_jiffies_update;
|
|
|
|
-
|
|
|
|
struct tick_sched *tick_get_tick_sched(int cpu)
|
|
struct tick_sched *tick_get_tick_sched(int cpu)
|
|
{
|
|
{
|
|
return &per_cpu(tick_cpu_sched, cpu);
|
|
return &per_cpu(tick_cpu_sched, cpu);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#if defined(CONFIG_NO_HZ_COMMON) || defined(CONFIG_HIGH_RES_TIMERS)
|
|
|
|
+/*
|
|
|
|
+ * The time, when the last jiffy update happened. Protected by jiffies_lock.
|
|
|
|
+ */
|
|
|
|
+static ktime_t last_jiffies_update;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Must be called with interrupts disabled !
|
|
* Must be called with interrupts disabled !
|
|
*/
|
|
*/
|
|
@@ -151,6 +152,7 @@ static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs)
|
|
update_process_times(user_mode(regs));
|
|
update_process_times(user_mode(regs));
|
|
profile_tick(CPU_PROFILING);
|
|
profile_tick(CPU_PROFILING);
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef CONFIG_NO_HZ_FULL
|
|
#ifdef CONFIG_NO_HZ_FULL
|
|
cpumask_var_t tick_nohz_full_mask;
|
|
cpumask_var_t tick_nohz_full_mask;
|