Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BD2EC636D4 for ; Thu, 9 Feb 2023 18:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbjBISQ2 convert rfc822-to-8bit (ORCPT ); Thu, 9 Feb 2023 13:16:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjBISQ1 (ORCPT ); Thu, 9 Feb 2023 13:16:27 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C34F3AB8; Thu, 9 Feb 2023 10:16:26 -0800 (PST) X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="332331807" X-IronPort-AV: E=Sophos;i="5.97,284,1669104000"; d="scan'208";a="332331807" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2023 10:16:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="667775885" X-IronPort-AV: E=Sophos;i="5.97,284,1669104000"; d="scan'208";a="667775885" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP; 09 Feb 2023 10:16:25 -0800 Received: from abityuts-desk1.ger.corp.intel.com (abityuts-desk1.fi.intel.com [10.237.68.150]) by linux.intel.com (Postfix) with ESMTP id B52365808AB; Thu, 9 Feb 2023 10:16:24 -0800 (PST) Message-ID: <33ee67fcdb190ce18159a4bdd3e2d94ea4e1f4fc.camel@gmail.com> Subject: Re: [PATCH v1] cpuidle: driver: Update microsecond values of state parameters as needed From: Artem Bityutskiy To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Zhang Rui Date: Thu, 09 Feb 2023 20:16:23 +0200 In-Reply-To: <2676828.mvXUDI8C0e@kreacher> References: <2676828.mvXUDI8C0e@kreacher> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2023-02-07 at 20:59 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If the cpuidle driver provides the target residency and exit latency in > nanoseconds, the corresponding values in microseconds need to be set to > reflect the provided numbers in order for the sysfs interface to show > them correctly, so make __cpuidle_driver_init() do that. > > Signed-off-by: Rafael J. Wysocki Tested-by: Artem Bityutskiy Thanks!