From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751741AbcFWKS3 (ORCPT ); Thu, 23 Jun 2016 06:18:29 -0400 Received: from www.linutronix.de ([62.245.132.108]:47057 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbcFWKS1 (ORCPT ); Thu, 23 Jun 2016 06:18:27 -0400 Date: Thu, 23 Jun 2016 12:16:20 +0200 (CEST) From: Thomas Gleixner To: Zhaoyang Huang cc: Daniel Lezcano , Geng Ren , Alex Wang , Vincent Guittot , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, =?GB2312?Q?Zhaoyang_Huang_=28=BB=C6=B3=AF=D1=F4=29?= , Serge Broslavsky Subject: Re: [RESEND PATCH v2 2/2] power/idle: enhance the precision of sleep_length In-Reply-To: Message-ID: References: <1466154816-17900-1-git-send-email-zhaoyang.huang@spreadtrum.com> <1466154816-17900-2-git-send-email-zhaoyang.huang@spreadtrum.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Jun 2016, Zhaoyang Huang wrote: > On 23 June 2016 at 16:35, Thomas Gleixner wrote: > >> Hi, Thomas. If the entry,exit,min time of one idle state sums up to > >> 500us in some platform, the 100us callback which should be common as > >> caused by cache miss would also generate 20% imprecision. Don't you > > > > A cache miss is causing a 100us callback? What are you talking about? > > > By a serials of memory access which maybe missed on cache all. Anyway, > we can require the callback not to introduce schedule etc, but can not > ask them to ensure their own executing time, which they can not > control. I really do not understand what you are trying to solve. If the enter to idle code is delayed by cache misses for 100us then you have other serious problems than the accuracy of that time stamp. Thanks, tglx