Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932218Ab2HFPN4 (ORCPT ); Mon, 6 Aug 2012 11:13:56 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:49391 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932132Ab2HFPNz (ORCPT ); Mon, 6 Aug 2012 11:13:55 -0400 MIME-Version: 1.0 Date: Mon, 6 Aug 2012 11:13:53 -0400 Message-ID: Subject: [PATCH]: Autosleep patch. From: Christopher Sacchi To: linux-wireless@vger.kernel.org Cc: Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 26 This patch (listed below), changes an old function in autosleep.c in kernel version 3.5. It's code is listed from the first -- line to the 2nd to last -- line. This patch was checked with checkpatch.pl with no errors: -- --- power/autosleep.c 2012-07-21 20:58:29.000000000 +0000 +++ power/autosleepnew.c 2012-08-06 10:52:26.000000000 +0000 @@ -30,7 +30,7 @@ static void try_to_suspend(struct work_s if (!pm_get_wakeup_count(&initial_count, true)) goto out; - mutex_lock(&autosleep_lock); + mutex_lock_interruptable(); if (!pm_save_wakeup_count(initial_count)) { mutex_unlock(&autosleep_lock); Signed-off-by: Christopher P. Sacchi -- -- Christopher -- 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/