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 D747BCDB474 for ; Thu, 12 Oct 2023 21:15:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442831AbjJLVPK (ORCPT ); Thu, 12 Oct 2023 17:15:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442824AbjJLVPJ (ORCPT ); Thu, 12 Oct 2023 17:15:09 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F576A9 for ; Thu, 12 Oct 2023 14:15:08 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4066692ad35so15301195e9.1 for ; Thu, 12 Oct 2023 14:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697145307; x=1697750107; 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=LXj2JrQj56sgWsNLBX3n0JJqicUacQ5S9A/AXrcip2E=; b=TXpzMrw+jjofLXYR1SeP8AWuHL2wWVhNj19yQmFhoBs6dxOBcklzh/DroXZFyMZjau X8lLBJvXulcN1o4zp9sPyr/SUoWmnyCxT/d0oA9DPtgVbDCKorxG+ZnxmjX6F631YM63 5KzZeSku0b+738/RtYBew7mI/3JiShGaHNUFJm52T4ip+32soZl6V17JAvq/vHtXmzDp ybWNQvNe1Q7tgJDUSJSAVMde7ADUs8isSCwqgdnFCm+hJaWMxSn3qM3vD9GTqHbqESLv wUGv/RZbKZ79h8/WLBFySv23c1W0uQi3VptTLx6QAuKyynVyd89srAL+hHKsJsv/SbBw fjPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697145307; x=1697750107; 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=LXj2JrQj56sgWsNLBX3n0JJqicUacQ5S9A/AXrcip2E=; b=BZU0QoJjx0cNMwwR2VzDWQ3yFAQ/J98eoWWqEPoXWMeetsq2MW78d52fUAzGn/uXgM uvDYizVU/4x4dIzDcwfUwggHm4nLjQftg14Ndn/kj4H+9siqhFweqQfrfpJ3LAawsH/L 3tgEy5O0fV4930WL/MjX7i3x+iv9IHXNb7c5y8A6AYYLm3bo7WIzy+PGCMZ/sF+2O7Ey nbUZPq1dxs65L5FlJyQ7bRxj3D21GXIhgFZJK/EnzdjQV7UDHwL50hlWS8FdMxEoxhU7 pkhPRxd6g4LkqjuUNFQTbjhhpfFBTwgS9dLAspPFF3wwGDj7R7SinzVOrpGSnpEaApbE n4Cg== X-Gm-Message-State: AOJu0YymmK/NIHsOatdtLMFJHID8WwLpX0yU7YkR2ChvLkzlxrKfPhd7 5IRxTEn10FNx/BwHeYjxATVOuA== X-Google-Smtp-Source: AGHT+IHzvIxR4s5jjJ4TBL6sFjqX8qfM2TNzRyoAL30WuuFBiuKX6R3ZIcDp2KOD8leDEtJD0bLmQg== X-Received: by 2002:a05:600c:684:b0:406:8496:bd8c with SMTP id a4-20020a05600c068400b004068496bd8cmr21767568wmn.20.1697145306267; Thu, 12 Oct 2023 14:15:06 -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.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Oct 2023 14:15:05 -0700 (PDT) Message-ID: <519c78b8-55b4-4774-92b2-ae3dece9bf09@linaro.org> Date: Thu, 12 Oct 2023 23:15:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/6] thermal: trip: Simplify computing trip indices Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Srinivas Pandruvada , Zhang Rui , Lukasz Luba References: <5734364.DvuYhMxLoT@kreacher> <4882956.31r3eYUQgx@kreacher> From: Daniel Lezcano In-Reply-To: <4882956.31r3eYUQgx@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 12/10/2023 20:25, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > A trip index can be computed right away as a difference between the > value of a trip pointer pointing to the given trip object and the > start of the trips[] table in the given thermal zone, so change > thermal_zone_trip_id() accordingly. > > No intentional functional impact (except for some speedup). > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog