From nobody Wed Dec 17 08:01:43 2025 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 0490DC25B48 for ; Fri, 27 Oct 2023 18:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbjJ0SZI (ORCPT ); Fri, 27 Oct 2023 14:25:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235227AbjJ0SX7 (ORCPT ); Fri, 27 Oct 2023 14:23:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A331FD2; Fri, 27 Oct 2023 11:23:13 -0700 (PDT) Date: Fri, 27 Oct 2023 18:23:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1698430992; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oD4CgE22kVR7H1tuqLA+CBy4FtkiLGc0YM3cqn0GhZ4=; b=Omw9D4NTvqazCIciExgHIlRJC7FgQrn+EifQ4vaPLMQQOyHJni++AHBWqtZU57/OGZMVWr Pd/nYuirZwAR9++DlYzfCpkijiuJ7ea+t875rgdJ1RQZN+RKmZLAhy+QiEF0jA6RCqyFvM iNXGsB5ok19oWoFv3CWkTCtOVgwKqBLfWfYI19mUzqgAtlCDTI2cQzty3M5pN88ELbpHu3 PBKke7TRKNegX+hMFujKEUBxLVbHpqLlaS7sSSJJfuT2rB4PPp5p5w5dIBQdztRO28E497 GiGWsa3DqIimhsekmBb+znWCETI/URxM+sTlwzkNdDNKqrb8EqfQOVviHAKP+g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1698430992; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oD4CgE22kVR7H1tuqLA+CBy4FtkiLGc0YM3cqn0GhZ4=; b=KEeWAbKHYGBN9TI6gGkAVrenZv/lU3Wp1bRGmbIptHUBWjNZWQxxlLNytJxqzoOZevG7nI 3ji6dW+YnD23W2CA== From: "tip-bot2 for Sunil V L" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/timer-riscv: ACPI: Add timer_cannot_wakeup_cpu Cc: Sunil V L , Conor Dooley , Andrew Jones , Samuel Holland , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230927170015.295232-5-sunilvl@ventanamicro.com> References: <20230927170015.295232-5-sunilvl@ventanamicro.com> MIME-Version: 1.0 Message-ID: <169843099133.3135.16121474221122398067.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the timers/core branch of tip: Commit-ID: d7f546c751e8c873302331af6a203ee61f894e9d Gitweb: https://git.kernel.org/tip/d7f546c751e8c873302331af6a203ee61= f894e9d Author: Sunil V L AuthorDate: Wed, 27 Sep 2023 22:30:15 +05:30 Committer: Daniel Lezcano CommitterDate: Wed, 11 Oct 2023 12:06:41 +02:00 clocksource/timer-riscv: ACPI: Add timer_cannot_wakeup_cpu The timer capability to wakeup the cpu irrespective of its idle state is provided by the flag in RHCT. Update the timer code to set this flag. Signed-off-by: Sunil V L Reviewed-by: Conor Dooley Reviewed-by: Andrew Jones Reviewed-by: Samuel Holland Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230927170015.295232-5-sunilvl@ventanamicr= o.com --- drivers/clocksource/timer-riscv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clocksource/timer-riscv.c b/drivers/clocksource/timer-= riscv.c index da3071b..5019865 100644 --- a/drivers/clocksource/timer-riscv.c +++ b/drivers/clocksource/timer-riscv.c @@ -212,6 +212,10 @@ TIMER_OF_DECLARE(riscv_timer, "riscv", riscv_timer_ini= t_dt); #ifdef CONFIG_ACPI static int __init riscv_timer_acpi_init(struct acpi_table_header *table) { + struct acpi_table_rhct *rhct =3D (struct acpi_table_rhct *)table; + + riscv_timer_cannot_wake_cpu =3D rhct->flags & ACPI_RHCT_TIMER_CANNOT_WAKE= UP_CPU; + return riscv_timer_init_common(); }