Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298016
b: refs/heads/master
c: 5c48c87
h: refs/heads/master
v: v3
  • Loading branch information
Robert Lee authored and Len Brown committed Mar 21, 2012
1 parent 97bf5f8 commit 9345fe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee807dd89c0003a5cc0ec961132cd83542e5c30c
refs/heads/master: 5c48c873baf1a67b93d26770c8fe4d41f26f48af
10 changes: 3 additions & 7 deletions trunk/arch/sh/kernel/cpu/shmobile/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ static int cpuidle_sleep_enter(struct cpuidle_device *dev,
int index)
{
unsigned long allowed_mode = SUSP_SH_SLEEP;
ktime_t before, after;
int requested_state = index;
int allowed_state;
int k;
Expand All @@ -47,19 +46,16 @@ static int cpuidle_sleep_enter(struct cpuidle_device *dev,
*/
k = min_t(int, allowed_state, requested_state);

before = ktime_get();
sh_mobile_call_standby(cpuidle_mode[k]);
after = ktime_get();

dev->last_residency = (int)ktime_to_ns(ktime_sub(after, before)) >> 10;

return k;
}

static struct cpuidle_device cpuidle_dev;
static struct cpuidle_driver cpuidle_driver = {
.name = "sh_idle",
.owner = THIS_MODULE,
.name = "sh_idle",
.owner = THIS_MODULE,
.en_core_tk_irqen = 1,
};

void sh_mobile_setup_cpuidle(void)
Expand Down

0 comments on commit 9345fe7

Please sign in to comment.