Re: [PATCH 5/5] Implement clockevents for R4000-style cp0 timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 17 Jun 2007 01:04:48 +0100, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote:
> [MIPS] Switch from to_tm to rtc_time_to_tm
> 
> This replaces the MIPS-specific to_tm function with the generic
> rtc_time_to_tm function.  The big difference between the two functions is
> that rtc_time_to_tm uses epoch 70 while to_tm uses 1970, so the result of
> rtc_time_to_tm needs to be fixed up.
> 
> Signed-off-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx>

Thanks, looks good to me except a few things.

>  arch/mips/momentum/jaguar_atx/setup.c  |    8 ++++-

Zombie? ;)

>  arch/mips/momentum/ocelot_c/setup.c    |    8 ++++-

Likely zombie?

>  include/asm-mips/time.h                |    7 ----
>  12 files changed, 36 insertions(+), 73 deletions(-)

And on more.

diff --git a/include/asm-mips/rtc.h b/include/asm-mips/rtc.h
index 82ad401..42d049f 100644
--- a/include/asm-mips/rtc.h
+++ b/include/asm-mips/rtc.h
@@ -33,8 +33,7 @@ static inline unsigned int get_rtc_time(struct rtc_time *time)
 	unsigned long nowtime;
 
 	nowtime = rtc_mips_get_time();
-	to_tm(nowtime, time);
-	time->tm_year -= 1900;
+	rtc_time_to_tm(nowtime, time);
 
 	return RTC_24H;
 }

---
Atsushi Nemoto


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux