From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [PATCH 2/5] x86/time: scale_delta() can be static
Date: Tue, 6 Jan 2026 14:58:29 +0100 [thread overview]
Message-ID: <ccaba595-aba4-409e-be36-ea5004cd6484@suse.com> (raw)
In-Reply-To: <66a53368-9c33-436c-858e-2b2d25ae84b7@suse.com>
It's used in time.c alone. Modernize types while there.
Amends: 5a82d598d2d ("viridian: unify time sources")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
--- a/xen/arch/x86/include/asm/time.h
+++ b/xen/arch/x86/include/asm/time.h
@@ -56,7 +56,6 @@ u64 stime2tsc(s_time_t stime);
struct time_scale;
void set_time_scale(struct time_scale *ts, u64 ticks_per_sec);
-u64 scale_delta(u64 delta, const struct time_scale *scale);
/* Programmable Interval Timer (8254) */
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -131,9 +131,9 @@ static inline u32 mul_frac(u32 multiplic
* Scale a 64-bit delta by scaling and multiplying by a 32-bit fraction,
* yielding a 64-bit result.
*/
-u64 scale_delta(u64 delta, const struct time_scale *scale)
+static uint64_t scale_delta(uint64_t delta, const struct time_scale *scale)
{
- u64 product;
+ uint64_t product;
if ( scale->shift < 0 )
delta >>= -scale->shift;
next prev parent reply other threads:[~2026-01-06 13:58 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-06 13:57 [PATCH 0/5] x86: assorted time handling adjustments Jan Beulich
2026-01-06 13:58 ` [PATCH 1/5] x86/time: deal with negative deltas in get_s_time_fixed() Jan Beulich
2026-01-06 20:10 ` Антон Марков
2026-01-07 8:02 ` Jan Beulich
2026-01-09 16:11 ` Anton Markov
2026-01-12 10:31 ` Anton Markov
2026-01-12 11:45 ` Jan Beulich
2026-01-12 12:49 ` Anton Markov
2026-01-12 14:13 ` Jan Beulich
2026-01-12 14:51 ` Anton Markov
2026-01-12 16:08 ` Jan Beulich
2026-01-12 16:41 ` Anton Markov
2026-01-13 11:21 ` Jan Beulich
2026-01-13 12:35 ` Anton Markov
2026-01-14 17:49 ` Roger Pau Monné
2026-01-15 8:00 ` Jan Beulich
2026-01-15 8:24 ` Roger Pau Monné
2026-01-15 8:49 ` Anton Markov
2026-01-15 10:38 ` Jan Beulich
2026-01-15 11:48 ` Roger Pau Monné
2026-01-15 12:04 ` Jan Beulich
2026-01-20 8:50 ` Jan Beulich
2026-01-20 9:28 ` Jan Beulich
2026-01-06 13:58 ` Jan Beulich [this message]
2026-01-13 18:40 ` [PATCH 2/5] x86/time: scale_delta() can be static Roger Pau Monné
2026-01-06 13:58 ` [PATCH 3/5] x86/HVM: drop at_tsc parameter from ->set_tsc_offset() hook Jan Beulich
2026-01-14 9:40 ` Roger Pau Monné
2026-01-06 13:59 ` [PATCH 4/5] x86/time: gtsc_to_gtime() is HVM-only Jan Beulich
2026-01-14 9:43 ` Roger Pau Monné
2026-01-14 9:52 ` Roger Pau Monné
2026-01-06 14:00 ` [PATCH 5/5] x86/time: pv_soft_rdtsc() is PV-only Jan Beulich
2026-01-14 9:46 ` Roger Pau Monné
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=ccaba595-aba4-409e-be36-ea5004cd6484@suse.com \
--to=jbeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=roger.pau@citrix.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.