--- /tmp/builtin-sched.c 2012-05-31 09:01:00.000000000 +0000 +++ perf/builtin-sched.c 2012-05-31 08:41:55.000000000 +0000 @@ -342,7 +342,7 @@ { u64 loops, last_loops, new_loops; u64 sample_period; - u64 ns1, ns2, delta, delta_new, delta_diff; + u64 ns1, ns2, delta; /* 1 ms */ sample_period = 1000000; @@ -362,12 +362,6 @@ } while (delta < sample_period); new_loops = ((last_loops * sample_period) + (delta / 2)) / delta; - delta_new = bogoloops_measure_stable(new_loops); - - if (delta_new > sample_period) - delta_diff = delta_new - sample_period; - else - delta_diff = sample_period - delta_new; bogoloops = new_loops; } @@ -3404,7 +3398,7 @@ static struct task *generate_spr_program(struct task_desc *task, unsigned long *map_id_fwd, unsigned long *next_opt_id) { - struct sched_atom *atom, *atom_last; + struct sched_atom *atom; unsigned long eventnr; unsigned int exited; unsigned int blocked; @@ -3491,8 +3485,6 @@ for (eventnr = 0; eventnr < task->nr_events && !exited; eventnr++) { - atom_last = atom; - atom = task->atoms[eventnr]; exited = atom->type == SCHED_EVENT_EXIT;