From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740Ab1ATS5L (ORCPT ); Thu, 20 Jan 2011 13:57:11 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:35865 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753521Ab1ATS5J (ORCPT ); Thu, 20 Jan 2011 13:57:09 -0500 Date: Thu, 20 Jan 2011 18:56:17 +0000 From: Russell King - ARM Linux To: Ben Dooks Cc: Paul Mundt , Lorenzo Pieralisi , Vincent Guittot , linux-sh@vger.kernel.org, Ben Herrenschmidt , Sascha Hauer , linux-kernel@vger.kernel.org, Uwe Kleine-K??nig , Jeremy Kerr , linux-arm-kernel@lists.infradead.org Subject: Re: Locking in the clk API Message-ID: <20110120185617.GI6335@n2100.arm.linux.org.uk> References: <201101111016.42819.jeremy.kerr@canonical.com> <20110111031552.GJ3760@linux-sh.org> <4D3862DB.5000708@fluff.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D3862DB.5000708@fluff.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 20, 2011 at 04:29:15PM +0000, Ben Dooks wrote: > I really don't like the fact that people are doing these things in > atomic contexts, and I think we should apply some pressure to move > the atomic caller cases to use systems where they can sleep such as > using threaded-irq handlers (they work very nicely) How do you ensure that printk is always called from a non-atomic context?