From: "tip-bot2 for Dr. David Alan Gilbert" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: "Dr. David Alan Gilbert" <linux@treblig.org>,
Thomas Gleixner <tglx@linutronix.de>,
John Stultz <jstultz@google.com>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/core] clocksource: Remove unused clocksource_change_rating
Date: Wed, 09 Oct 2024 09:21:49 -0000 [thread overview]
Message-ID: <172846570954.1442.6028241325035117957.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20241009003032.254348-1-linux@treblig.org>
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 5ce9bb4d5af2f5ef38f134e3cb400c873d357de7
Gitweb: https://git.kernel.org/tip/5ce9bb4d5af2f5ef38f134e3cb400c873d357de7
Author: Dr. David Alan Gilbert <linux@treblig.org>
AuthorDate: Wed, 09 Oct 2024 01:30:32 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Wed, 09 Oct 2024 11:14:29 +02:00
clocksource: Remove unused clocksource_change_rating
clocksource_change_rating() has been unused since 2017's commit
63ed4e0c67df ("Drivers: hv: vmbus: Consolidate all Hyper-V specific
clocksource code")
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/all/20241009003032.254348-1-linux@treblig.org
---
include/linux/clocksource.h | 1 -
kernel/time/clocksource.c | 21 ---------------------
2 files changed, 22 deletions(-)
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index d35b677..ef1b16d 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -215,7 +215,6 @@ static inline s64 clocksource_cyc2ns(u64 cycles, u32 mult, u32 shift)
extern int clocksource_unregister(struct clocksource*);
extern void clocksource_touch_watchdog(void);
-extern void clocksource_change_rating(struct clocksource *cs, int rating);
extern void clocksource_suspend(void);
extern void clocksource_resume(void);
extern struct clocksource * __init clocksource_default_clock(void);
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 23336ee..e041ba8 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -1262,27 +1262,6 @@ static void __clocksource_change_rating(struct clocksource *cs, int rating)
clocksource_enqueue(cs);
}
-/**
- * clocksource_change_rating - Change the rating of a registered clocksource
- * @cs: clocksource to be changed
- * @rating: new rating
- */
-void clocksource_change_rating(struct clocksource *cs, int rating)
-{
- unsigned long flags;
-
- mutex_lock(&clocksource_mutex);
- clocksource_watchdog_lock(&flags);
- __clocksource_change_rating(cs, rating);
- clocksource_watchdog_unlock(&flags);
-
- clocksource_select();
- clocksource_select_watchdog(false);
- clocksource_suspend_select(false);
- mutex_unlock(&clocksource_mutex);
-}
-EXPORT_SYMBOL(clocksource_change_rating);
-
/*
* Unbind clocksource @cs. Called with clocksource_mutex held
*/
next prev parent reply other threads:[~2024-10-09 9:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-09 0:30 [PATCH] " linux
2024-10-09 1:20 ` John Stultz
2024-10-10 1:22 ` Dr. David Alan Gilbert
2024-10-10 13:59 ` Dr. David Alan Gilbert
2024-10-09 9:21 ` tip-bot2 for Dr. David Alan Gilbert [this message]
2024-10-10 13:54 [PATCH v2] " linux
2024-10-15 15:29 ` [tip: timers/core] " tip-bot2 for Dr. David Alan Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=172846570954.1442.6028241325035117957.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=linux@treblig.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®