1. 29 Jul, 2018 2 commits
    • Arnd Bergmann's avatar
      m68k: Remove unused set_clock_mmss() helpers · d7de1c3a
      Arnd Bergmann authored
      Commit 397ac99c ("m68k: remove dead timer code") removed set_rtc_mmss()
      because it was unused in 2012. However, this was itself the only user of the
      mach_set_clock_mmss() callback and the many implementations of that callback,
      which are equally unused.
      
      This removes all of those as well.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      d7de1c3a
    • Arnd Bergmann's avatar
      m68k: mac: Use time64_t in RTC handling · 5b9bfb8e
      Arnd Bergmann authored
      The real-time clock on m68k (and powerpc) mac systems uses an unsigned
      32-bit value starting in 1904, which overflows in 2040, about two years
      later than everyone else, but this gets wrapped around in the Linux
      code in 2038 already because of the deprecated usage of time_t and/or
      long in the conversion.
      
      Getting rid of the deprecated interfaces makes it work until 2040 as
      documented, and it could be easily extended by reinterpreting
      the resulting time64_t as a positive number. For the moment, I'm
      adding a WARN_ON() that triggers if we encounter a time before 1970
      or after 2040 (the two are indistinguishable).
      
      This brings it in line with the corresponding code that we have on
      powerpc macintosh.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      [fthain: Adopt __u32 for the union in via_read_time(), consistent with
      	 changes to via_write_time()]
      [fthain: Use lower_32_bits() in via_write_time(), consistent with changes
      	 to pmu_write_time() and cuda_write_time()]
      [fthain: Have via_read_time() return a time64_t, consistent with changes
      	 to pmu_read_time() and cuda_read_time()]
      [fthain: Drop the pointless wraparound conditional in via_read_time()]
      Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
      Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
      [geert: Drop WARN_ON(), as it is reported to trigger on powermac]
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      5b9bfb8e
  2. 23 Jul, 2018 3 commits
  3. 22 Jul, 2018 8 commits
  4. 21 Jul, 2018 12 commits
  5. 20 Jul, 2018 15 commits