[V2,04/17] clocksource/drivers/sp804: Do not use timer namespace for timer_shutdown() function
Message ID | 20221122173648.327359885@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2352964wrr; Tue, 22 Nov 2022 09:46:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6dGHzD8w6FpRmrN1qehwr26InlqdZ6nYjwtk2SPI+DzyTzBl7WjDxETokGkw8IwoTOvdKB X-Received: by 2002:a63:ec11:0:b0:470:5b0d:b50e with SMTP id j17-20020a63ec11000000b004705b0db50emr9154721pgh.488.1669139193269; Tue, 22 Nov 2022 09:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669139193; cv=none; d=google.com; s=arc-20160816; b=fHZGFuni2igjWJrT1k9t9XnG9ZqV/6BwZ697OYmxnqai23JJHSNzGyp89xhkBSr1er fysT4jFxwypV0LJHGWoXCYRb+PPWEwuvHYTYWfFukBaJW2n/7KAA2Prvyke3zlpJWmvV oFDGwa1T5h76Amf/vSBeIidCK+T9QUC6cssF0M6f1XdTuB7WsKFYkygB8CLkOM6tbXHb Spe1ZXRyPfti2eBIG9X7lafm4zgPBfrTM7syqm0DdpUcx//grgrIWYv2lt8LPwn38rId tGRoZoe2x4W/oC5S32Zq9y9Is+PJt7Rzlb3vw0zz1oXz0q94bzrWOWnY5dGQO8AZhZJw O7ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=XkUTDmMIm9+EPawG5WF0ZN1LAtqzHJ1HnPEjTlQs+bs=; b=T4nwdFRhEDOhCHWFW4m3IEonuBmyLmQNNyNv7xkIeOgmifCBUOUNV8Q750Dg+1ZJdd cefOue/HTRA5mW/yS5prypVkO772eOZtxWXDeRneuufKTUjFhsE/4rhP3p48uIIoof+g KExHl92y73pegtEKiEDlc0lp5BeJV3PTUYbtX1SiUfai9tdGds0iyt3LIF3K+ZFSHB3N dvaQH//B9AryTwIvPPbdjLisp7mqraFmS8NcL5485hGuV0/Ic/QQja9yCNRblnhhNzzK TPP4GZ60gVA9jhcIt3RsgYcxON7KbtcfUGZvy2V7JK/A32TnZNFPXTWfeaHGpBcE+GtL d9GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=J3nBFNez; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=R5tyYplw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170902f68f00b001865c1ecf30si16460307plg.176.2022.11.22.09.46.17; Tue, 22 Nov 2022 09:46:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=J3nBFNez; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=R5tyYplw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234018AbiKVRpV (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 12:45:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234222AbiKVRox (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 12:44:53 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8D6E12AB3; Tue, 22 Nov 2022 09:44:52 -0800 (PST) Message-ID: <20221122173648.327359885@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669139091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=XkUTDmMIm9+EPawG5WF0ZN1LAtqzHJ1HnPEjTlQs+bs=; b=J3nBFNezDC8uN3ZPfqF3oC/ue8yBWnVxhPJpQZwVsdQ2eXizU6+3VPt/MbZzOc6AyglOei Zt2AmEuAKZnh0qJU+i76Dk9gZy9uUBjgVTjj1ljz1yXXXz3zmiK8jpPpbqxSXKol8nilUc RSH6odc7PeybggsvcyRcPRN0JN5UuHmav8rLUxNmmbAC05P3YnMjq1QHjgeInyTNObDiFU HTWMqdlFUWiTexdziHVD7ZBXs12k783vBwSLjzzi8UV97oIPa/UNb4wuqG0JoZllfxCYw2 8P9A+qRqONzjNCBjN9iXPuJppa9Ijb73fHez3IidGe9E1eKxDLoZ2syEn1XGkA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669139091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=XkUTDmMIm9+EPawG5WF0ZN1LAtqzHJ1HnPEjTlQs+bs=; b=R5tyYplwRwRkuvw3XPzIEGap+FoJrvNzYiWDwUbKs4+7X2ap4Jezy2iZIH2E2ThT9B+75f VIf/GgaA476Wq0Dw== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: Linus Torvalds <torvalds@linuxfoundation.org>, Steven Rostedt <rostedt@goodmis.org>, Anna-Maria Behnsen <anna-maria@linutronix.de>, Peter Zijlstra <peterz@infradead.org>, Stephen Boyd <sboyd@kernel.org>, Guenter Roeck <linux@roeck-us.net>, Andrew Morton <akpm@linux-foundation.org>, Julia Lawall <Julia.Lawall@inria.fr>, Arnd Bergmann <arnd@arndb.de>, Viresh Kumar <viresh.kumar@linaro.org>, Marc Zyngier <maz@kernel.org>, Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, linux-bluetooth@vger.kernel.org, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org Subject: [patch V2 04/17] clocksource/drivers/sp804: Do not use timer namespace for timer_shutdown() function References: <20221122171312.191765396@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 22 Nov 2022 18:44:50 +0100 (CET) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750219298678890641?= X-GMAIL-MSGID: =?utf-8?q?1750219298678890641?= |
Series |
timers: Provide timer_shutdown[_sync]()
|
|
Commit Message
Thomas Gleixner
Nov. 22, 2022, 5:44 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org> A new "shutdown" timer state is being added to the generic timer code. One of the functions to change the timer into the state is called "timer_shutdown()". This means that there can not be other functions called "timer_shutdown()" as the timer code owns the "timer_*" name space. Rename timer_shutdown() to evt_timer_shutdown() to avoid this conflict. Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lkml.kernel.org/r/20221106212702.182883323@goodmis.org Link: https://lore.kernel.org/all/20221105060155.592778858@goodmis.org/ Link: https://lore.kernel.org/r/20221110064147.158230501@goodmis.org --- drivers/clocksource/timer-sp804.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-sp804.c b/drivers/clocksource/timer-sp804.c index e6a87f4af2b5..cd1916c05325 100644 --- a/drivers/clocksource/timer-sp804.c +++ b/drivers/clocksource/timer-sp804.c @@ -155,14 +155,14 @@ static irqreturn_t sp804_timer_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static inline void timer_shutdown(struct clock_event_device *evt) +static inline void evt_timer_shutdown(struct clock_event_device *evt) { writel(0, common_clkevt->ctrl); } static int sp804_shutdown(struct clock_event_device *evt) { - timer_shutdown(evt); + evt_timer_shutdown(evt); return 0; } @@ -171,7 +171,7 @@ static int sp804_set_periodic(struct clock_event_device *evt) unsigned long ctrl = TIMER_CTRL_32BIT | TIMER_CTRL_IE | TIMER_CTRL_PERIODIC | TIMER_CTRL_ENABLE; - timer_shutdown(evt); + evt_timer_shutdown(evt); writel(common_clkevt->reload, common_clkevt->load); writel(ctrl, common_clkevt->ctrl); return 0;