From 98f89f00dc4fc76e67d707f895b1dd7166bc47b4 Mon Sep 17 00:00:00 2001 From: Srivatsa Vaddagiri Date: Mon, 13 Oct 2014 16:45:45 +0530 Subject: sched: update governor notification logic Make criteria for notifying governor to be per-cpu. Governor is notified of any large change in cpu's busy time statistics (rq->prev_runnable_sum) since the last reported value. Change-Id: I727354d994d909b166d093b94d3dade7c7dddc0d Signed-off-by: Srivatsa Vaddagiri --- include/linux/sched/sysctl.h | 1 - include/trace/events/sched.h | 16 ++++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/linux/sched/sysctl.h b/include/linux/sched/sysctl.h index 04e153610c9f..8cadba92aee0 100644 --- a/include/linux/sched/sysctl.h +++ b/include/linux/sched/sysctl.h @@ -44,7 +44,6 @@ extern unsigned int sysctl_sched_wakeup_load_threshold; extern unsigned int sysctl_sched_window_stats_policy; extern unsigned int sysctl_sched_account_wait_time; extern unsigned int sysctl_sched_ravg_hist_size; -extern unsigned int sysctl_sched_gov_response_time; extern unsigned int sysctl_sched_freq_account_wait_time; extern unsigned int sysctl_sched_migration_fixup; extern unsigned int sysctl_sched_heavy_task_pct; diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 8829075d0746..2d76ec1aa1cd 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -408,24 +408,24 @@ TRACE_EVENT(sched_get_busy, TRACE_EVENT(sched_freq_alert, - TP_PROTO(int cpu, unsigned int cur_freq, unsigned int freq_required), + TP_PROTO(int cpu, u64 old_load, u64 new_load), - TP_ARGS(cpu, cur_freq, freq_required), + TP_ARGS(cpu, old_load, new_load), TP_STRUCT__entry( __field( int, cpu ) - __field(unsigned int, cur_freq ) - __field(unsigned int, freq_required ) + __field( u64, old_load ) + __field( u64, new_load ) ), TP_fast_assign( __entry->cpu = cpu; - __entry->cur_freq = cur_freq; - __entry->freq_required = freq_required; + __entry->old_load = old_load; + __entry->new_load = new_load; ), - TP_printk("cpu %d cur_freq=%u freq_required=%u", - __entry->cpu, __entry->cur_freq, __entry->freq_required) + TP_printk("cpu %d old_load=%llu new_load=%llu", + __entry->cpu, __entry->old_load, __entry->new_load) ); #endif /* CONFIG_SCHED_FREQ_INPUT */ -- cgit v1.2.3