Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756968Ab2BHBkH (ORCPT ); Tue, 7 Feb 2012 20:40:07 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:37934 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756394Ab2BHBkE (ORCPT ); Tue, 7 Feb 2012 20:40:04 -0500 Date: Wed, 8 Feb 2012 05:39:59 +0400 From: Anton Vorontsov To: Ingo Molnar , Peter Zijlstra , Dave Jones , Russell King Cc: Oleg Nesterov , Benjamin Herrenschmidt , "Paul E. McKenney" , Nicolas Pitre , Mike Chan , Todd Poynor , cpufreq@vger.kernel.org, kernel-team@android.com, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/4] Scheduler idle notifiers and users Message-ID: <20120208013959.GA24535@panacea> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1227 Lines: 35 Hi all, For some drivers we need to know when scheduler is idling. The most straightforward way is to gracefully hook into the idle loop. On x86 there are "CPU idle" notifiers in the inner idle loop, but scheduler idle notifiers are different. These notifiers do not run on every invocation/exit from cpuidle, instead they used to notify about scheduler state changes, not HW states. In other words, CPU idle notifiers work inside while(!need_resched()) loop (nested into idle loop), while scheduler idle notifier work outside of the loop. The first two patches consolidate scheduler idle entry/exit points, and converts architectures to this new API. The third patch is a new cpufreq governor, the commit message briefly describes it. The fourth patch is another user of the notifiers, a trivial one. Thanks, p.s. For the reference, the old discussion about CPU/PM idle notifiers: http://lkml.org/lkml/2011/6/27/391 -- Anton Vorontsov Email: cbouatmailru@gmail.com -- 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/