Skip to content

Commit

Permalink
Revert "time: sched_clock: record cycle count in suspend and resume"
Browse files Browse the repository at this point in the history
This reverts commit 71dddbc.

bug 131260677

Change-Id: Iec02f0b15109f6de36e1e5bca8edf60b615d5897
Signed-off-by: Tim Murray <[email protected]>
  • Loading branch information
Tim Murray authored and Arjun-Ingole committed Apr 25, 2022
1 parent c179593 commit af7628c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions kernel/time/sched_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit af7628c

Please sign in to comment.