summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Dufour2013-01-15 13:50:35 +0100
committerOlivier Dufour2013-01-18 09:33:19 +0100
commit48f837a82765468d2858859a7e9ea0d9e6f49948 (patch)
tree5a442afe8dc0aeb8cc932afdaa022d09b54fe66c
parente749bad520120e8bc6bbb5d62192a798d0c91704 (diff)
cleo/linux/spc300/low_power: fix compilation warning, refs #3568
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-pm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-pm.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-pm.c
index fe9a6bc3b6..b82b5ad444 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-pm.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-pm.c
@@ -62,7 +62,8 @@ static void unmap_extra_registers (void)
*/
void system_time_update ()
{
- struct timeval tv;
+ struct timeval tv;
+ struct timespec ts;
do_gettimeofday(&tv);
/* Tick timer is set to 10ms */
@@ -74,7 +75,9 @@ void system_time_update ()
tv.tv_usec -= 1000000;
}
- do_settimeofday(&tv);
+ ts.tv_sec = tv.tv_sec;
+ ts.tv_nsec = tv.tv_usec * 1000;
+ do_settimeofday(&ts);
sram_data.tick_counter = 0;
}
#endif