summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSrivatsa Vaddagiri <vatsa@codeaurora.org>2014-10-13 16:45:45 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:00:54 -0700
commit98f89f00dc4fc76e67d707f895b1dd7166bc47b4 (patch)
tree646c7e868c2903a3da08ae7d78c2f140950fad4b /include
parent6139e8a16f92ab392de53264cf3000af68f6a85a (diff)
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 <vatsa@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched/sysctl.h1
-rw-r--r--include/trace/events/sched.h16
2 files changed, 8 insertions, 9 deletions
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 */