diff options
-rw-r--r-- | include/linux/tick.h | 6 | ||||
-rw-r--r-- | kernel/softirq.c | 2 | ||||
-rw-r--r-- | kernel/time/tick-sched.c | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index 0175d8663b6c..b84773cb9f4c 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -104,7 +104,7 @@ extern struct cpumask *tick_get_broadcast_oneshot_mask(void); | |||
104 | extern void tick_clock_notify(void); | 104 | extern void tick_clock_notify(void); |
105 | extern int tick_check_oneshot_change(int allow_nohz); | 105 | extern int tick_check_oneshot_change(int allow_nohz); |
106 | extern struct tick_sched *tick_get_tick_sched(int cpu); | 106 | extern struct tick_sched *tick_get_tick_sched(int cpu); |
107 | extern void tick_check_idle(void); | 107 | extern void tick_irq_enter(void); |
108 | extern int tick_oneshot_mode_active(void); | 108 | extern int tick_oneshot_mode_active(void); |
109 | # ifndef arch_needs_cpu | 109 | # ifndef arch_needs_cpu |
110 | # define arch_needs_cpu(cpu) (0) | 110 | # define arch_needs_cpu(cpu) (0) |
@@ -112,7 +112,7 @@ extern int tick_oneshot_mode_active(void); | |||
112 | # else | 112 | # else |
113 | static inline void tick_clock_notify(void) { } | 113 | static inline void tick_clock_notify(void) { } |
114 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } | 114 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } |
115 | static inline void tick_check_idle(void) { } | 115 | static inline void tick_irq_enter(void) { } |
116 | static inline int tick_oneshot_mode_active(void) { return 0; } | 116 | static inline int tick_oneshot_mode_active(void) { return 0; } |
117 | # endif | 117 | # endif |
118 | 118 | ||
@@ -121,7 +121,7 @@ static inline void tick_init(void) { } | |||
121 | static inline void tick_cancel_sched_timer(int cpu) { } | 121 | static inline void tick_cancel_sched_timer(int cpu) { } |
122 | static inline void tick_clock_notify(void) { } | 122 | static inline void tick_clock_notify(void) { } |
123 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } | 123 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } |
124 | static inline void tick_check_idle(void) { } | 124 | static inline void tick_irq_enter(void) { } |
125 | static inline int tick_oneshot_mode_active(void) { return 0; } | 125 | static inline int tick_oneshot_mode_active(void) { return 0; } |
126 | #endif /* !CONFIG_GENERIC_CLOCKEVENTS */ | 126 | #endif /* !CONFIG_GENERIC_CLOCKEVENTS */ |
127 | 127 | ||
diff --git a/kernel/softirq.c b/kernel/softirq.c index 11348de09400..ca9cb35a96d4 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -318,7 +318,7 @@ void irq_enter(void) | |||
318 | * here, as softirq will be serviced on return from interrupt. | 318 | * here, as softirq will be serviced on return from interrupt. |
319 | */ | 319 | */ |
320 | local_bh_disable(); | 320 | local_bh_disable(); |
321 | tick_check_idle(); | 321 | tick_irq_enter(); |
322 | _local_bh_enable(); | 322 | _local_bh_enable(); |
323 | } | 323 | } |
324 | 324 | ||
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 0ddd020bbaf2..e4d0f093061f 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -1023,7 +1023,7 @@ static void tick_nohz_kick_tick(struct tick_sched *ts, ktime_t now) | |||
1023 | #endif | 1023 | #endif |
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | static inline void tick_check_nohz_this_cpu(void) | 1026 | static inline void tick_nohz_irq_enter(void) |
1027 | { | 1027 | { |
1028 | struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); | 1028 | struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); |
1029 | ktime_t now; | 1029 | ktime_t now; |
@@ -1042,17 +1042,17 @@ static inline void tick_check_nohz_this_cpu(void) | |||
1042 | #else | 1042 | #else |
1043 | 1043 | ||
1044 | static inline void tick_nohz_switch_to_nohz(void) { } | 1044 | static inline void tick_nohz_switch_to_nohz(void) { } |
1045 | static inline void tick_check_nohz_this_cpu(void) { } | 1045 | static inline void tick_nohz_irq_enter(void) { } |
1046 | 1046 | ||
1047 | #endif /* CONFIG_NO_HZ_COMMON */ | 1047 | #endif /* CONFIG_NO_HZ_COMMON */ |
1048 | 1048 | ||
1049 | /* | 1049 | /* |
1050 | * Called from irq_enter to notify about the possible interruption of idle() | 1050 | * Called from irq_enter to notify about the possible interruption of idle() |
1051 | */ | 1051 | */ |
1052 | void tick_check_idle(void) | 1052 | void tick_irq_enter(void) |
1053 | { | 1053 | { |
1054 | tick_check_oneshot_broadcast_this_cpu(); | 1054 | tick_check_oneshot_broadcast_this_cpu(); |
1055 | tick_check_nohz_this_cpu(); | 1055 | tick_nohz_irq_enter(); |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | /* | 1058 | /* |