|
@@ -446,7 +446,7 @@ extern void timer_stats_update_stats(void *timer, pid_t pid, void *startf,
|
|
|
|
|
|
static inline void timer_stats_account_hrtimer(struct hrtimer *timer)
|
|
static inline void timer_stats_account_hrtimer(struct hrtimer *timer)
|
|
{
|
|
{
|
|
- if (likely(!timer->start_site))
|
|
|
|
|
|
+ if (likely(!timer_stats_active))
|
|
return;
|
|
return;
|
|
timer_stats_update_stats(timer, timer->start_pid, timer->start_site,
|
|
timer_stats_update_stats(timer, timer->start_pid, timer->start_site,
|
|
timer->function, timer->start_comm, 0);
|
|
timer->function, timer->start_comm, 0);
|
|
@@ -457,8 +457,6 @@ extern void __timer_stats_hrtimer_set_start_info(struct hrtimer *timer,
|
|
|
|
|
|
static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer)
|
|
static inline void timer_stats_hrtimer_set_start_info(struct hrtimer *timer)
|
|
{
|
|
{
|
|
- if (likely(!timer_stats_active))
|
|
|
|
- return;
|
|
|
|
__timer_stats_hrtimer_set_start_info(timer, __builtin_return_address(0));
|
|
__timer_stats_hrtimer_set_start_info(timer, __builtin_return_address(0));
|
|
}
|
|
}
|
|
|
|
|