From mboxrd@z Thu Jan 1 00:00:00 1970 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 C20DBCDB474 for ; Thu, 12 Oct 2023 21:16:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442879AbjJLVQE (ORCPT ); Thu, 12 Oct 2023 17:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442853AbjJLVQA (ORCPT ); Thu, 12 Oct 2023 17:16:00 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0004C9D for ; Thu, 12 Oct 2023 14:15:56 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-405361bba99so14549665e9.2 for ; Thu, 12 Oct 2023 14:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697145355; x=1697750155; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fM0DXXboWe5a80zsbvWwo3m0mrD8GmZVCasDLYdIcEM=; b=P7WQLGDxIpcgOFEAVxE9bJ75x2ynuqHs+SEd9MknG+R39JD8CTEw4DPxA9Kj/P41GF EZ2snNZMhdXe70w+aehWMBpsUXO6+SkAsndXHFa+ZYqACWNaW+wXcO6GPNQC6I0w7rTK WRR/EWuG3ntYbdOUexfRsZgBX+t3NfVINGsi64WYBlkMrmEVyYVPHutt+7ED7v7MWsGb jp4Jgyc+LuhuCjwxznaVCq5NpQY733o6TJVMNO4i8rkcxyM9Kjkpd8/YRIMiRQLxk0fA tt8La86xNxOK91yYh+6mYJZx21T582fluM9whGp8l0PXiuSMiEjR/A38vSisNLsn7vWu 0avg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697145355; x=1697750155; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fM0DXXboWe5a80zsbvWwo3m0mrD8GmZVCasDLYdIcEM=; b=gh28xU16iSuYBZu2xWrEu9iiSj6fiKszxpMIoGvl3BcwCR9xoeD9l76kQw+NPw2FU4 y31Ze7lRauN7OqS+NcYrxufHrT2ufu37j3vRSvluDx3opGcr9EOQb1LI8rE+K1CqA954 67Nuua9jXFJBUhhWBmyvXF/hBvZpcyB2ERQe5DhLC0k/elzjhanTRSs/yG0ISzPEnD4o F1ud7hKRdnzftIJkSrvOu2MABgR/+fqLefV63mmJUpEqadNuL58eBVufJQ0Wj45IS2vz P7FvbmJBoadoW+xgv7/o0xFjOm2ArWb36mypMPcHpJUCkc6Wmy9ZykEGOLVAf2bLRjRu SHdQ== X-Gm-Message-State: AOJu0Yz120rkWgFmdD9gg6a5dLCvsp0lakk57LRsEbIIX3AOFSh/IAev g8jtNu3MYoyf3kTwP0Eyr+NwLQ== X-Google-Smtp-Source: AGHT+IGnhYZy39oYwrq//smjlyz4lEvmT2v2EcPW/pw6yueHBg5L2AuBDkhLP/4ph9q70ITFtaBy4Q== X-Received: by 2002:a1c:7419:0:b0:3fe:89be:cd3 with SMTP id p25-20020a1c7419000000b003fe89be0cd3mr21652442wmc.22.1697145355443; Thu, 12 Oct 2023 14:15:55 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0? ([2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0]) by smtp.googlemail.com with ESMTPSA id l25-20020a7bc459000000b004054dcbf92asm779383wmi.20.2023.10.12.14.15.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 14:15:55 -0700 (PDT) Message-ID: <561802cb-318c-4a83-92e6-5328be1106d4@linaro.org> Date: Thu, 12 Oct 2023 23:15:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/6] thermal: gov_fair_share: Rearrange get_trip_level() Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Srinivas Pandruvada , Zhang Rui , Lukasz Luba References: <5734364.DvuYhMxLoT@kreacher> <2176566.irdbgypaU6@kreacher> From: Daniel Lezcano In-Reply-To: <2176566.irdbgypaU6@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/2023 20:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make get_trip_level() use for_each_trip() to iterate over trip points > and make it call thermal_zone_trip_id() to obtain the integer ID of a > given trip point so as to avoid relying on the knowledge of struct > thermal_zone_device internals. > > The general functionality is not expected to be changed. > > This change causes the governor to use trip pointers instead of trip > indices everywhere except for the fair_share_throttle() second argument > that will be modified subsequently along with the definition of the > governor .throttle() callback. > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog