From patchwork Wed Sep 30 17:35:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 50729 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8UHaPv0007345 for ; Wed, 30 Sep 2009 17:36:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754701AbZI3Rfv (ORCPT ); Wed, 30 Sep 2009 13:35:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754660AbZI3Rfv (ORCPT ); Wed, 30 Sep 2009 13:35:51 -0400 Received: from mail-pz0-f191.google.com ([209.85.222.191]:56398 "EHLO mail-pz0-f191.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbZI3Rfu (ORCPT ); Wed, 30 Sep 2009 13:35:50 -0400 Received: by pzk29 with SMTP id 29so4592363pzk.33 for ; Wed, 30 Sep 2009 10:35:54 -0700 (PDT) Received: by 10.115.113.14 with SMTP id q14mr91867wam.178.1254332154750; Wed, 30 Sep 2009 10:35:54 -0700 (PDT) Received: from localhost ([216.254.16.51]) by mx.google.com with ESMTPS id 23sm47799pzk.8.2009.09.30.10.35.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Sep 2009 10:35:54 -0700 (PDT) From: Kevin Hilman To: linux-pm@lists.linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH] CPUidle: always return with interrupts enabled Date: Wed, 30 Sep 2009 10:35:53 -0700 Message-Id: <1254332153-23493-1-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.4.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index ad41f19..12fdd39 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c @@ -76,8 +76,11 @@ static void cpuidle_idle_call(void) #endif /* ask the governor for the next state */ next_state = cpuidle_curr_governor->select(dev); - if (need_resched()) + if (need_resched()) { + local_irq_enable(); return; + } + target_state = &dev->states[next_state]; /* enter the state and update stats */