login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
15
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Aristeu Rozanski <aris@...>
To: Dan Aloni <da-x@...>
Cc: Linux Kernel List <linux-kernel@...>
Subject:
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
Date: Thursday, November 15, 2007 - 2:30 pm
Hello Dan,
quoted text
> Patch is valid only for 2.6.23.x, guessing from the recent arch/ changes > in 2.6.24-rc. > > set_rtc_mmss() was used to be called from interrupt context in 2.6.22, > however in 2.6.23, it is called from a timer context, where interrupts > are enabled. This patch ensures that rtc_interrupt() won't dead-lock > with set_rtc_mmss().
quoted text
> diff --git a/arch/x86_64/kernel/time.c b/arch/x86_64/kernel/time.c > index 6241b50..8414236 100644 > --- a/arch/x86_64/kernel/time.c > +++ b/arch/x86_64/kernel/time.c > @@ -87,13 +87,14 @@ static int set_rtc_mmss(unsigned long nowtime) > int retval = 0; > int real_seconds, real_minutes, cmos_minutes; > unsigned char control, freq_select; > + unsigned long flags; > > /* > * IRQs are disabled when we're called from the timer interrupt, > * no need for spin_lock_irqsave() > */ > > - spin_lock(&rtc_lock); > + spin_lock_irqsave(&rtc_lock, flags);
I think it's a good idea to update or just remove the comment above. -- Aristeu -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] x86_64: fix a deadlock in set_rtc_mmss()
, Dan Aloni
, (Thu Nov 15, 12:55 pm)
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
, Thomas Gleixner
, (Tue Nov 20, 3:59 am)
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
, Aristeu Rozanski
, (Thu Nov 15, 2:30 pm)
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
, Li Zefan
, (Thu Nov 15, 11:26 pm)
Re: [PATCH] x86_64: fix a deadlock in set_rtc_mmss()
, Dan Aloni
, (Sat Nov 17, 4:34 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.21
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Con Kolivas
Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2
Andrew Morton
echo mem > /sys/power/state
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [GIT]: Networking
Michael S. Tsirkin
Re: [RFC PATCH v2 03/19] vbus: add connection-client helper infrastructure
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
764 guests
online.
Syndicate