static int ps3_set_time(struct device *dev, struct rtc_time *tm) { unsigned long now; rtc_tm_to_time(tm, &now); ps3_os_area_set_rtc_diff(now - read_rtc()); return 0; }
int ps3_set_rtc_time(struct rtc_time *tm) { u64 now = mktime(tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); ps3_os_area_set_rtc_diff(now - read_rtc()); return 0; }