summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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