Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4835317imm; Tue, 21 Aug 2018 01:38:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyACderUnIjFNy+PUedmLKDLOBkHNzxG2yJvT6eTWSnJN0TLUjkqmO2okeEW8NeceyQ9i69 X-Received: by 2002:a62:9992:: with SMTP id t18-v6mr51833961pfk.239.1534840694206; Tue, 21 Aug 2018 01:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534840694; cv=none; d=google.com; s=arc-20160816; b=H2m+ZFOtck4fPiURahdMGke0ojdDxtZQFwBLUxo0gZy7BPg/iJYI7Mkf8YjUmYhMsn PJsMq2gB/qOVbVANEdMtvi+4quAzBxjoX98sElpbisIlQbFhqduItlCkhtFwFwcAlPBH Xfvv+MErfihcZdtlCrBGKvc2uv9cfVCOCcpVEZJw4p8+AnDIkBpFB1eTxJ9jLintV5lQ 9hSzF1r/F4PDJWjQMPvfQw1RaesXrbPt09xzF3Uff8femAUNlISGacjVPTd5sF9cqpMp +8xh2En4mdvkgpaIuZB2BS/HfV/pIzHSL5LaF2x9k9/sSWmPAbGLbHMMX9QLWTfT10Rj dByQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qfmU7bM9WPTjfOS0b3HgupKw9mi8P8zarOOVSijWj3A=; b=xUIRSILXx9o+QszjGvGE+MRkl07DiOo+s8aZxQu8ONPyFaW0yXIl4tdYLRmms9U8f5 wvlk5pkX1ffmhWrm1S87gNjCbu5Jy+yMyQHd2phMEDHhIg7F/SjjEKem860c+jRrfSBP GMVr0yP4f+Rbgd0l0EIp18vPpOHgflf6EgBPSs74w5kcBBqOXzWjfhGUn2QYRxgyGqrZ G8IiNOP5ylair0qZnNzRmPXjJT8mb2PrRYUx237q6ArKKIDCDRnBE84hyeYaR96eSxZC gOg6jPrKhmhLNJBXQHpgUw2G1x456ZPbyLdzDHHLpyGl6yypgWy3L1g9XUIf1RsHKkQ0 S0bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si11747475pgh.160.2018.08.21.01.37.58; Tue, 21 Aug 2018 01:38:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbeHUL4G (ORCPT + 99 others); Tue, 21 Aug 2018 07:56:06 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:56905 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbeHUL4G (ORCPT ); Tue, 21 Aug 2018 07:56:06 -0400 Received: from 79.184.253.33.ipv4.supernova.orange.pl (79.184.253.33) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 77a3b81da76902e3; Tue, 21 Aug 2018 10:36:51 +0200 From: "Rafael J. Wysocki" To: Leo Yan Cc: "Rafael J. Wysocki" , "Peter Zijlstra (Intel)" , Daniel Lezcano , Vincent Guittot , Ramesh Thomas , linux-kernel@vger.kernel.org, Linux PM Subject: Re: [PATCH v1 2/5] cpuidle: menu: Record tick delta value in struct menu_device Date: Tue, 21 Aug 2018 10:34:34 +0200 Message-ID: <1736901.g9hLg0e4yF@aspire.rjw.lan> In-Reply-To: <1534090171-14464-3-git-send-email-leo.yan@linaro.org> References: <1534090171-14464-1-git-send-email-leo.yan@linaro.org> <1534090171-14464-3-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, August 12, 2018 6:09:28 PM CEST Leo Yan wrote: > Since the tick delta is used in multiple places in menu_select(), it's > better to use single one variable to record this value; furthermore, for > more readable we can refactor the code to split a separate function to > making decision for stopping tick, which also needs to use tick delta > value as one metric for consideration. I don't quite agree that allocating more per-CPU memory for readability sake is a good idea, sorry. Thanks, Rafael