sched_clock: Do not record suspend/resume cycle count

This reverts commit 71dddbcc4621693e863b8cd4e2acc3ce187e80ed.

bug 131260677

Change-Id: Iec02f0b15109f6de36e1e5bca8edf60b615d5897
Signed-off-by: Tim Murray <timmurray@google.com>
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
This commit is contained in:
Tim Murray 2019-04-29 08:52:42 -07:00 committed by Adithya R
parent 9f2567f6cd
commit e6b4c4da17

View File

@ -71,9 +71,6 @@ struct clock_data {
static struct hrtimer sched_clock_timer;
static int irqtime = -1;
static u64 suspend_ns;
static u64 suspend_cycles;
static u64 resume_cycles;
core_param(irqtime, irqtime, int, 0400);
@ -283,11 +280,6 @@ int sched_clock_suspend(void)
struct clock_read_data *rd = &cd.read_data[0];
update_sched_clock();
suspend_ns = rd->epoch_ns;
suspend_cycles = rd->epoch_cyc;
pr_info("suspend ns:%17llu suspend cycles:%17llu\n",
rd->epoch_ns, rd->epoch_cyc);
hrtimer_cancel(&sched_clock_timer);
rd->read_sched_clock = suspended_sched_clock_read;
@ -299,8 +291,6 @@ void sched_clock_resume(void)
struct clock_read_data *rd = &cd.read_data[0];
rd->epoch_cyc = cd.actual_read_sched_clock();
resume_cycles = rd->epoch_cyc;
pr_info("resume cycles:%17llu\n", rd->epoch_cyc);
hrtimer_start(&sched_clock_timer, cd.wrap_kt, HRTIMER_MODE_REL);
rd->read_sched_clock = cd.actual_read_sched_clock;
}