Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3be9095063885d482b87d3875ea7f28e635882d0 Commit: 3be9095063885d482b87d3875ea7f28e635882d0 Parent: d0174640eedc1cd756754f03afe2dbb3d56de74e Author: Thomas Gleixner <[EMAIL PROTECTED]> AuthorDate: Sun Sep 16 15:36:43 2007 +0200 Committer: Thomas Gleixner <[EMAIL PROTECTED](none)> CommitDate: Sun Sep 16 15:36:43 2007 +0200
timekeeping: access rtc outside of xtime lock Lockdep complains about the access of rtc in timekeeping_suspend inside the interrupt disabled region of the write locked xtime lock. Move the access outside. Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> Cc: John Stultz <[EMAIL PROTECTED]> --- kernel/time/timekeeping.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index acc417b..f682091 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -325,9 +325,10 @@ static int timekeeping_suspend(struct sys_device *dev, pm_message_t state) { unsigned long flags; + timekeeping_suspend_time = read_persistent_clock(); + write_seqlock_irqsave(&xtime_lock, flags); timekeeping_suspended = 1; - timekeeping_suspend_time = read_persistent_clock(); write_sequnlock_irqrestore(&xtime_lock, flags); clockevents_notify(CLOCK_EVT_NOTIFY_SUSPEND, NULL); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html