aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-omap/omap_device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index 54fe0a2f0b24..9a502af14f5b 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -134,12 +134,12 @@ static int _omap_device_activate(struct omap_device *od, u8 ignore_lat)
134 (od->dev_wakeup_lat <= od->_dev_wakeup_lat_limit)) 134 (od->dev_wakeup_lat <= od->_dev_wakeup_lat_limit))
135 break; 135 break;
136 136
137 getnstimeofday(&a); 137 read_persistent_clock(&a);
138 138
139 /* XXX check return code */ 139 /* XXX check return code */
140 odpl->activate_func(od); 140 odpl->activate_func(od);
141 141
142 getnstimeofday(&b); 142 read_persistent_clock(&b);
143 143
144 c = timespec_sub(b, a); 144 c = timespec_sub(b, a);
145 act_lat = timespec_to_ns(&c) * NSEC_PER_USEC; 145 act_lat = timespec_to_ns(&c) * NSEC_PER_USEC;
@@ -190,12 +190,12 @@ static int _omap_device_deactivate(struct omap_device *od, u8 ignore_lat)
190 od->_dev_wakeup_lat_limit)) 190 od->_dev_wakeup_lat_limit))
191 break; 191 break;
192 192
193 getnstimeofday(&a); 193 read_persistent_clock(&a);
194 194
195 /* XXX check return code */ 195 /* XXX check return code */
196 odpl->deactivate_func(od); 196 odpl->deactivate_func(od);
197 197
198 getnstimeofday(&b); 198 read_persistent_clock(&b);
199 199
200 c = timespec_sub(b, a); 200 c = timespec_sub(b, a);
201 deact_lat = timespec_to_ns(&c) * NSEC_PER_USEC; 201 deact_lat = timespec_to_ns(&c) * NSEC_PER_USEC;