From patchwork Tue Jun 28 02:46:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todd Poynor X-Patchwork-Id: 923002 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5S2nQTZ031117 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 28 Jun 2011 02:49:47 GMT Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QbOMD-0003Pw-Lo; Tue, 28 Jun 2011 02:48:59 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QbOMB-0000vI-F9; Tue, 28 Jun 2011 02:48:55 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QbOLv-0000rp-Ua for linux-arm-kernel@canuck.infradead.org; Tue, 28 Jun 2011 02:48:40 +0000 Received: from smtp-out.google.com ([216.239.44.51]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QbOLt-0007kf-D9 for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2011 02:48:38 +0000 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id p5S2lpuE019934; Mon, 27 Jun 2011 19:47:51 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1309229271; bh=4MsegRbn4AC7j+hqa1Q9Wh6oYlE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=MEzpTPB5uwCsyQohUh9vx4SR8i9SJ/FPGOrtyYgruPn2RoC1bYxpaU0GRV4aCP5Mu Z3kX07DYKTqKeBrcGrNnw== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=hByi7PAD4mUW5tb1C1zSIRXEiJJgzpwlHpHle1jghawUX1RUyMb/JJI6l0Or0jSNJ 2gxe5pVBF1C5RSITgz72w== Received: from conslugarocko.mtv.corp.google.com (conslugarocko.mtv.corp.google.com [172.18.102.26]) by wpaz9.hot.corp.google.com with ESMTP id p5S2lnQv013644; Mon, 27 Jun 2011 19:47:50 -0700 Received: by conslugarocko.mtv.corp.google.com (Postfix, from userid 115684) id CB48C234225; Mon, 27 Jun 2011 19:47:49 -0700 (PDT) From: Todd Poynor To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Russell King Subject: [PATCH 2/3] ARM: Call idle notifiers Date: Mon, 27 Jun 2011 19:46:29 -0700 Message-Id: <1309229190-25006-3-git-send-email-toddpoynor@google.com> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <1309229190-25006-1-git-send-email-toddpoynor@google.com> References: <1309229190-25006-1-git-send-email-toddpoynor@google.com> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110628_034837_766627_289CCA7F X-CRM114-Status: GOOD ( 12.73 ) X-Spam-Score: -3.4 (---) X-Spam-Report: SpamAssassin version 3.3.2-r929478 on casper.infradead.org summary: Content analysis details: (-3.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [216.239.44.51 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record 0.9 FRT_TODAY2 BODY: ReplaceTags: Today (2) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Todd Poynor , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 28 Jun 2011 02:49:47 +0000 (UTC) Change-Id: Id833e61c13baa1783705ac9e9046d1f0cc90c95e Signed-off-by: Todd Poynor --- arch/arm/kernel/process.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 5e1e541..1b9101e 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -184,6 +184,7 @@ void cpu_idle(void) while (1) { tick_nohz_stop_sched_tick(1); leds_event(led_idle_start); + idle_notifier_call_chain(IDLE_START); while (!need_resched()) { #ifdef CONFIG_HOTPLUG_CPU if (cpu_is_offline(smp_processor_id())) @@ -208,6 +209,7 @@ void cpu_idle(void) } } leds_event(led_idle_end); + idle_notifier_call_chain(IDLE_END); tick_nohz_restart_sched_tick(); preempt_enable_no_resched(); schedule();