From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753196AbZGDWWZ (ORCPT ); Sat, 4 Jul 2009 18:22:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752465AbZGDWWQ (ORCPT ); Sat, 4 Jul 2009 18:22:16 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:48139 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752276AbZGDWWQ (ORCPT ); Sat, 4 Jul 2009 18:22:16 -0400 From: "Rafael J. Wysocki" To: "Linux-pm mailing list" Subject: [PATCH] PM / irq: Fix comment describing suspend_device_irqs() Date: Sun, 5 Jul 2009 00:22:34 +0200 User-Agent: KMail/1.11.2 (Linux/2.6.31-rc1-rjw; KDE/4.2.4; x86_64; ; ) Cc: LKML , Andrew Morton , Ingo Molnar , Thomas Gleixner MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907050022.35117.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki The kerneldoc comment describing suspend_device_irqs() is currently misleading, because generally the function doesn't really disable interrupt lines at the chip level. Replace it with a more accurate one. Signed-off-by: Rafael J. Wysocki --- kernel/irq/pm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6/kernel/irq/pm.c =================================================================== --- linux-2.6.orig/kernel/irq/pm.c +++ linux-2.6/kernel/irq/pm.c @@ -15,10 +15,10 @@ /** * suspend_device_irqs - disable all currently enabled interrupt lines * - * During system-wide suspend or hibernation device interrupts need to be - * disabled at the chip level and this function is provided for this purpose. - * It disables all interrupt lines that are enabled at the moment and sets the - * IRQ_SUSPENDED flag for them. + * During system-wide suspend or hibernation device drivers need to be prevented + * from receiving interrupts and this function is provided for this purpose. + * It marks all interrupt lines in use, except for the timer ones, as disabled + * and sets the IRQ_SUSPENDED flag for each of them. */ void suspend_device_irqs(void) {