[PATCH 3/5] powerpc: use time64_t in read_persistent_clock

Arnd Bergmann arnd at arndb.de
Mon Apr 23 18:28:31 AEST 2018


On Mon, Apr 23, 2018 at 10:10 AM, Arnd Bergmann <arnd at arndb.de> wrote:

> @@ -170,7 +170,6 @@ unsigned long __init maple_get_boot_time(void)
>         request_resource(&ioport_resource, &rtc_iores);
>
>         maple_get_rtc_time(&tm);
> -       return mktime(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
> -                     tm.tm_hour, tm.tm_min, tm.tm_sec);
> +       return rtc_tm_to_time66(&tm);
>  }

No, it's not rtc_tm_to_time66 ;(

I did some build testing over the weekend to make sure I find all the stupid
bugs, but then sent out the version without the two fixes. Please ignore all
five patches, will follow up with v2 that fixes this one and another equally
trivial bug.

       Arnd


More information about the Linuxppc-dev mailing list