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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A72B7CCFA13 for ; Sun, 9 Nov 2025 13:58:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vI5vk-0006Wu-DN; Sun, 09 Nov 2025 08:58:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vI5uX-0005rD-Lw for qemu-devel@nongnu.org; Sun, 09 Nov 2025 08:56:54 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vI5uU-0003Dg-UZ for qemu-devel@nongnu.org; Sun, 09 Nov 2025 08:56:52 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-640f627d01dso3953039a12.2 for ; Sun, 09 Nov 2025 05:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762696609; x=1763301409; darn=nongnu.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=FXyWkcRB4xLhqbx591avjGr1JsFf+qkK+7mD7HDG6z8=; b=MkGBna0VBYxGvpT74kNLqjvE1vBfesbVeFQoxNvqkmjC0GTFKKcncixv4ZjJsdRkEo og73CTTbfr/pTRf38zjwclZoZNji7PUlXu68XUwcu3Vv9bl52WCKyZP+9Cn1UuQTyvJU yZDNCxKsdkX5nfH0PhmNxKoCeAeC9defo+ehYoINSd4LVryglnynvRTwQAMsNNC4G168 6t6VSolFbyyIZixIAll03swokwPl9t4wPuD2hsKrHENfOIAySLm4J/rzhphbSwIjCKXq RKQzOc+DGQlP68ZXhQpBWIGSV/pOhk3bJQATAPd+W4BRDJX1jVoQtcY9z4ho2vYJGg0l eQng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762696609; x=1763301409; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FXyWkcRB4xLhqbx591avjGr1JsFf+qkK+7mD7HDG6z8=; b=ntWWWZqcPv/iezFbukn4gDzYY8c8d5NvI+152lLIUnN1PsI/S+WUfO/f93MHMZETAq ZCE7zcUBWdyE2j9QqJ6YsE7UWvet6x0eIev3CsWqOQ/N530Obsx3Snoz+RFiPOqicVDg 9oxRN8Yjyai8flamXbWdCa6nK/Tod28ojmsGVr4pohCPjSrkG+XcgJggVpQiMs4tLCMl ri2XZJ0Sid0+sAJ+vPHutNRDncH0BaHeZBRIjW1WNYuvkI1qzH4gbYsKxkYqz2QLYv/8 L/AQW3QGSiKjIrGagMbjmrR68kP3/9e3NGqoLCMrVTFFoZYi8mfZzd/jwNFfkKPd4xla k/sg== X-Forwarded-Encrypted: i=1; AJvYcCU38A0SQ9VNwP4/lB6kwQ5H5Ah07sCvhJb05dzEqF/gI5mYt1dDcx75ch5Awoyr1tFUzfYwyUxBGIOT@nongnu.org X-Gm-Message-State: AOJu0Yzjj3zZtS113gXyNhoTv9jih9rm0uXIlcUwM1C4kG2bXZJiU003 rMTJCRWiW5VumX2gmyev05bgwS2ifqTJxvi7tQtdHdQjX73DWnQGeD3MhemrS0/2+zg= X-Gm-Gg: ASbGncsEn6BdJSNvIIpcEBPSpKMiGY8Xls0pUJQ8SClUlnPY6adcvUeteEggdUUxI6u Xv5bleKJUyxUu59YouGd/M28d088I7sbYGQJ4HgQSNLSO72AL56DzVc3VqKajF9gGZ5srcUXdMU PA5OdA4kRHzKnjRBEAxYlXJlhtfWN89TZQt0SdIwnYyE0ohIq16zySrycckj3TBTlFPEz9s8LiD HoeqJsjx1IZ/BJWkhFYNPhm1datgYelnrHkH3UcFgjWFXA0BCQRh9WwlT6etGZ/rBhoanOl6RKV ffbDCTB9Vv3nZiwjvWWllo2whJjWkv7SuDwHoeu1V7I3CXthm/Mb57vuA5anHZFRrYl/glh7CV9 +brDkchzK2ih659qo/UaLX4b0fPVnKcv6+2x5BIBslAjE25qssAsJWLw6w3qmBpUrZaWNBohs8w Hr/2J7XCra9bl14PpzsVszgfBOMFZATAZa+n+ftl0/O3615+M= X-Google-Smtp-Source: AGHT+IFCC7BjoObcMWhLaPE3JgaWE4Jy+KhQMFCHAUSpLEz1LLknJItQ2/MgnZ7VuLtOSaEv3Julfg== X-Received: by 2002:a05:6402:3546:b0:63c:1066:8bec with SMTP id 4fb4d7f45d1cf-6415e81d8d1mr4106416a12.35.1762696609097; Sun, 09 Nov 2025 05:56:49 -0800 (PST) Received: from [192.168.2.7] (tmo-086-152.customers.d1-online.com. [80.187.86.152]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6411f862bd0sm9102037a12.26.2025.11.09.05.56.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Nov 2025 05:56:48 -0800 (PST) Message-ID: <0a7bb9a8-c2c9-40b7-ade2-ea6c2da17251@linaro.org> Date: Sun, 9 Nov 2025 14:56:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/9] hw/intc/riscv_aclint: rename cpu_riscv_read_rtc to riscv_aclint_mtimer_get_ticks Content-Language: en-US To: Luc Michel , qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Francisco Iglesias References: <20251107102340.471141-1-luc.michel@amd.com> <20251107102340.471141-4-luc.michel@amd.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20251107102340.471141-4-luc.michel@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=philmd@linaro.org; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On 7/11/25 11:23, Luc Michel wrote: > For more clarity, rename the cpu_riscv_read_rtc function to > riscv_aclint_mtimer_get_ticks: > - The ACLINT is the time source here, not the CPU, > - This function returns a number of ticks based on the timer > frequency. > > Rename the _raw version of this function as well and the local variables > storing the result of those function. > > Signed-off-by: Luc Michel > --- > hw/intc/riscv_aclint.c | 31 ++++++++++++++++--------------- > 1 file changed, 16 insertions(+), 15 deletions(-) Reviewed-by: Philippe Mathieu-Daudé