sched: Remove sched_ktime_clock()
The timekeeping subsystem is suspended shortly before suspending
and resumed shortly after resuming. During this time, interrupts
are disabled and only one CPU is online. The scheduler shouldn't
really be involved at this point in suspend/resume, so having
this API doesn't really make any sense. Remove it.
Change-Id: Iad94c7a3b8f7cbad530d9ddbeb858d759119ab6e
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c
index 1b53241..be7caed 100644
--- a/kernel/sched/cpufreq_schedutil.c
+++ b/kernel/sched/cpufreq_schedutil.c
@@ -419,7 +419,7 @@ static void sugov_work(struct kthread_work *work)
mutex_lock(&sg_policy->work_lock);
raw_spin_lock_irqsave(&sg_policy->update_lock, flags);
sugov_track_cycles(sg_policy, sg_policy->policy->cur,
- sched_ktime_clock());
+ ktime_get_ns());
raw_spin_unlock_irqrestore(&sg_policy->update_lock, flags);
__cpufreq_driver_target(sg_policy->policy, sg_policy->next_freq,
CPUFREQ_RELATION_L);
@@ -802,7 +802,7 @@ static void sugov_limits(struct cpufreq_policy *policy)
mutex_lock(&sg_policy->work_lock);
raw_spin_lock_irqsave(&sg_policy->update_lock, flags);
sugov_track_cycles(sg_policy, sg_policy->policy->cur,
- sched_ktime_clock());
+ ktime_get_ns());
raw_spin_unlock_irqrestore(&sg_policy->update_lock, flags);
cpufreq_policy_apply_limits(policy);
mutex_unlock(&sg_policy->work_lock);