Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261925AbUFCJB2 (ORCPT ); Thu, 3 Jun 2004 05:01:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261932AbUFCJB2 (ORCPT ); Thu, 3 Jun 2004 05:01:28 -0400 Received: from sd291.sivit.org ([194.146.225.122]:38342 "EHLO sd291.sivit.org") by vger.kernel.org with ESMTP id S261925AbUFCJBR (ORCPT ); Thu, 3 Jun 2004 05:01:17 -0400 Date: Thu, 3 Jun 2004 11:00:45 +0200 From: Stelian Pop To: Arjan van de Ven Cc: Daniel Drake , video4linux-list@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Use msleep in meye driver Message-ID: <20040603090044.GB3621@crusoe.alcove-fr> Reply-To: Stelian Pop Mail-Followup-To: Stelian Pop , Arjan van de Ven , Daniel Drake , video4linux-list@redhat.com, linux-kernel@vger.kernel.org References: <40BDF8E6.6040601@gentoo.org> <20040603083848.GA3621@crusoe.alcove-fr> <1086252437.2709.0.camel@laptop.fenrus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1086252437.2709.0.camel@laptop.fenrus.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 26 On Thu, Jun 03, 2004 at 10:47:18AM +0200, Arjan van de Ven wrote: > > > >From what I see in kernel/timer.c, msleep() cannot be called in > > interrupt context, so the in_interrupt() test must stay. > > mdelay in irq context is *EVIL* though, and will get all the low latency > and audio folks very upset... Indeed :) In fact, reading the code again shows that wait_ms() is never called in interrupt context, so the in_interrupt() test was useless. Daniel's patch is then correct, please apply it. Or should I add a "Signed-off" line too and resend the patch ? Stelian. -- Stelian Pop - 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/