From patchwork Mon Aug 6 15:13:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Sacchi X-Patchwork-Id: 1280211 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2D9C83FD57 for ; Mon, 6 Aug 2012 15:14:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932191Ab2HFPNz (ORCPT ); Mon, 6 Aug 2012 11:13:55 -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 Received: by wibhm11 with SMTP id hm11so1847698wib.1 for ; Mon, 06 Aug 2012 08:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=/AXbtI5DNCVh3EMfJcC0yHS5tYd+tj6DdtiL9qF5Nwk=; b=waIM+wqL6aZjX/08I8LBUWOr/0pE0CNGaI77vbbAUhdXjr3yAQ5JBe9W6HwKUkAtkU cd2t5DmiygQHifl5fuQqbHzdL+Idc4zE97Xu+LgW5Io2F4TUqur4Ur6J6HvqLrsDMqyY Ffkm/NF+yXS1JaeTKNTpGPbh6kqKDffTzP9TdRlm3vT5Ye/4rtjeYCXmqXzO4s7h2XvI K07hCbGU1vQeMHioF7iw5qA4RdezOn1UWRHxVc52+gQTs3iPwyjH0pjgDxrB1UOs/e84 0ZAwWnvoap3pOV287mqbqwHWViSKWm3c3qo2Tw+XhmtzOzwzrU0890HXTudIh/aJjJ4t jrog== MIME-Version: 1.0 Received: by 10.180.109.166 with SMTP id ht6mr19253723wib.11.1344266033256; Mon, 06 Aug 2012 08:13:53 -0700 (PDT) Received: by 10.216.190.92 with HTTP; Mon, 6 Aug 2012 08:13:53 -0700 (PDT) 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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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: Signed-off-by: line is not part of the patch. It should be near the --- Signed-off-by: Christopher P. Sacchi -- --- 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);