mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
macintosh: Use common code to access RTC
Now that the 68k Mac port has adopted the via-pmu driver, the same RTC
code can be shared between m68k and powerpc. Replace duplicated code in
arch/powerpc and arch/m68k with common RTC accessors for Cuda and PMU.
Drop the problematic WARN_ON which was introduced in commit 22db552b50
("powerpc/powermac: Fix rtc read/write functions").
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
053c5a753e
commit
0792a2c8e0
6 changed files with 106 additions and 171 deletions
|
@ -9,6 +9,7 @@
|
|||
#ifndef _LINUX_PMU_H
|
||||
#define _LINUX_PMU_H
|
||||
|
||||
#include <linux/rtc.h>
|
||||
#include <uapi/linux/pmu.h>
|
||||
|
||||
|
||||
|
@ -36,6 +37,9 @@ static inline void pmu_resume(void)
|
|||
|
||||
extern void pmu_enable_irled(int on);
|
||||
|
||||
extern time64_t pmu_get_time(void);
|
||||
extern int pmu_set_rtc_time(struct rtc_time *tm);
|
||||
|
||||
extern void pmu_restart(void);
|
||||
extern void pmu_shutdown(void);
|
||||
extern void pmu_unlock(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue