From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1945991AbcBRK0F (ORCPT ); Thu, 18 Feb 2016 05:26:05 -0500 Received: from mail-ob0-f182.google.com ([209.85.214.182]:36227 "EHLO mail-ob0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1426246AbcBRKZ6 (ORCPT ); Thu, 18 Feb 2016 05:25:58 -0500 Subject: Re: [PATCH V3 2/2] sched: idle: IRQ based next prediction for idle period To: "Rafael J. Wysocki" References: <1455637383-14412-1-git-send-email-daniel.lezcano@linaro.org> <1455637383-14412-2-git-send-email-daniel.lezcano@linaro.org> Cc: Nicolas Pitre , Thomas Gleixner , Peter Zijlstra , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , Vincent Guittot From: Daniel Lezcano Message-ID: <56C59C32.1000903@linaro.org> Date: Thu, 18 Feb 2016 10:25:54 +0000 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/17/2016 11:21 PM, Rafael J. Wysocki wrote: [ ... ] >>> Reviewed-by: Nicolas Pitre >> >> Well, I'm likely overlooking something, but how is this going to be >> hooked up to the code in idle.c? > > My somewhat educated guess is that sched_idle() in your patch is > intended to replace cpuidle_idle_call(), right? Well, no. I was planning to first have it to use a different code path as experimental code in order to focus improving the accuracy of the prediction and then merge or replace cpuidle_idle_call() with sched_idle(). > If so, why do you want to replace it? > > And assuming that you have a good enough reason to do that, you need > to ensure that suspend-to-idle will work anyway. Yes, sure. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog