Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254AbaF0R1b (ORCPT ); Fri, 27 Jun 2014 13:27:31 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:50754 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbaF0R1W (ORCPT ); Fri, 27 Jun 2014 13:27:22 -0400 From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , John Whitmore , Alessandro Zummo , Alexander Holler Subject: [PATCH 0/2][RFC] Try to handle hctosys w/ rtc modules Date: Fri, 27 Jun 2014 10:27:09 -0700 Message-Id: <1403890031-26419-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Its been pointed out that the RTC hctosys functionality doesn't work well with RTC modules, which may not be loaded until after late_init(). While there have been other attempts to sovle this, this patchset is a very quick 10 minute effort to show how I'd try to resolve this. There likely are still issues here, but I'd be happy to make fixes and adjustments to ensure it works. Feedback and comments always appreciated! -john Cc: John Whitmore Cc: Alessandro Zummo Cc: Alexander Holler John Stultz (2): time: Introduce do_first_settimeofday() rtc: Rework hctosys so that it is called on RTC registration drivers/rtc/class.c | 2 ++ drivers/rtc/hctosys.c | 19 +++++++---------- include/linux/rtc.h | 6 ++++++ include/linux/time.h | 2 ++ kernel/time/timekeeping.c | 54 ++++++++++++++++++++++++++++++++++++++--------- 5 files changed, 62 insertions(+), 21 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/