[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110111143406.GC22390@atrey.karlin.mff.cuni.cz>
Date: Tue, 11 Jan 2011 15:34:06 +0100
From: Pavel Machek <pavel@....cz>
To: Russell King - ARM Linux <linux@....linux.org.uk>
Cc: Sascha Hauer <s.hauer@...gutronix.de>,
Lorenzo Pieralisi <Lorenzo.Pieralisi@....com>,
Vincent Guittot <vincent.guittot@...aro.org>,
linux-sh@...r.kernel.org,
Ben Herrenschmidt <benh@...nel.crashing.org>,
linux-kernel@...r.kernel.org, Paul Mundt <lethal@...ux-sh.org>,
Uwe Kleine-K??nig <u.kleine-koenig@...gutronix.de>,
Jeremy Kerr <jeremy.kerr@...onical.com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: Locking in the clk API
Hi!
> Another solution occurs to me: clk_enable() which returns -EAGAIN if
> it's called in an atomic context but needs to sleep, and let the driver
> deal with the clock not being enabled when it wants it. The down side
> is it requires the driver to have additional code to sort out such a
> problem.
I do not think that "atomic context" is possible to reliably detect
inside a function like that.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists