Initialize variable at definition to avoid compiler warning when
compiling with CONFIG_OPTIMIZE_FOR_SIZE=n.
Change-Id: Ibd201877b2274c70ced9d7240d0e527bc77402f3
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
struct rq *rq = cpu_rq(cpu);
cpumask_t avail_cpus;
int ret_code = 0;
- u64 start_time;
+ u64 start_time = 0;
if (trace_sched_isolate_enabled())
start_time = sched_clock();
{
int ret_code = 0;
struct rq *rq = cpu_rq(cpu);
- u64 start_time;
+ u64 start_time = 0;
if (trace_sched_isolate_enabled())
start_time = sched_clock();
bool new_task;
struct related_thread_group *grp;
int cpu = rq->cpu;
- u32 old_curr_window;
+ u32 old_curr_window = p->ravg.curr_window;
new_window = mark_start < window_start;
if (new_window) {
* task or exiting tasks.
*/
if (!is_idle_task(p) && !exiting_task(p)) {
- old_curr_window = p->ravg.curr_window;
-
if (new_window)
rollover_task_window(p, full_window);
}