Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281877
b: refs/heads/master
c: 98be0dd
h: refs/heads/master
i:
  281875: 47f676e
v: v3
  • Loading branch information
Santosh Shilimkar authored and Kevin Hilman committed Dec 8, 2011
1 parent b5fe213 commit 500b98e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98272660970a71e21ad1992f695f75b780de833c
refs/heads/master: 98be0dde1957a1e47d42cf2c220bf52bacf81d6e
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-omap2/cpuidle44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <linux/cpuidle.h>
#include <linux/cpu_pm.h>
#include <linux/export.h>
#include <linux/clockchips.h>

#include <asm/proc-fns.h>

Expand Down Expand Up @@ -65,6 +66,7 @@ static int omap4_enter_idle(struct cpuidle_device *dev,
u32 cpu1_state;
int idle_time;
int new_state_idx;
int cpu_id = smp_processor_id();

/* Used to keep track of the total time in idle */
getnstimeofday(&ts_preidle);
Expand All @@ -86,6 +88,9 @@ static int omap4_enter_idle(struct cpuidle_device *dev,
cx = cpuidle_get_statedata(&dev->states_usage[new_state_idx]);
}

if (index > 0)
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &cpu_id);

/*
* Call idle CPU PM enter notifier chain so that
* VFP and per CPU interrupt context is saved.
Expand Down Expand Up @@ -121,6 +126,9 @@ static int omap4_enter_idle(struct cpuidle_device *dev,
if (omap4_mpuss_read_prev_context_state())
cpu_cluster_pm_exit();

if (index > 0)
clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &cpu_id);

getnstimeofday(&ts_postidle);
ts_idle = timespec_sub(ts_postidle, ts_preidle);

Expand Down

0 comments on commit 500b98e

Please sign in to comment.