The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: Gabriele Monaco <gmonaco@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	Anna-Maria Behnsen <anna-maria@linutronix.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	Waiman Long <llong@redhat.com>
Subject: Re: [PATCH v14 1/7] timers: Rename tmigr 'online' bit to 'available'
Date: Wed, 12 Nov 2025 16:45:42 +0100	[thread overview]
Message-ID: <aRSrpgytUvrP6Res@localhost.localdomain> (raw)
In-Reply-To: <20251104104740.70512-2-gmonaco@redhat.com>

Le Tue, Nov 04, 2025 at 11:47:33AM +0100, Gabriele Monaco a écrit :
> The timer migration hierarchy excludes offline CPUs via the
> tmigr_is_not_available function, which is essentially checking the
> online bit for the CPU.
> 
> Rename the online bit to available and all references in function names
> and tracepoint to generalise the concept of available CPUs.
> 
> Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
> Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
> ---
>  include/trace/events/timer_migration.h |  4 ++--
>  kernel/time/timer_migration.c          | 22 +++++++++++-----------
>  kernel/time/timer_migration.h          |  2 +-
>  3 files changed, 14 insertions(+), 14 deletions(-)
> 
> diff --git a/include/trace/events/timer_migration.h b/include/trace/events/timer_migration.h
> index 47db5eaf2f9ab..61171b13c687c 100644
> --- a/include/trace/events/timer_migration.h
> +++ b/include/trace/events/timer_migration.h
> @@ -173,14 +173,14 @@ DEFINE_EVENT(tmigr_cpugroup, tmigr_cpu_active,
>  	TP_ARGS(tmc)
>  );
>  
> -DEFINE_EVENT(tmigr_cpugroup, tmigr_cpu_online,
> +DEFINE_EVENT(tmigr_cpugroup, tmigr_cpu_available,
>  
>  	TP_PROTO(struct tmigr_cpu *tmc),
>  
>  	TP_ARGS(tmc)
>  );
>  
> -DEFINE_EVENT(tmigr_cpugroup, tmigr_cpu_offline,
> +DEFINE_EVENT(tmigr_cpugroup, tmigr_cpu_unavailable,
>  
>  	TP_PROTO(struct tmigr_cpu *tmc),
>  
> diff --git a/kernel/time/timer_migration.c b/kernel/time/timer_migration.c
> index c0c54dc5314c3..78700f90944f0 100644
> --- a/kernel/time/timer_migration.c
> +++ b/kernel/time/timer_migration.c
> @@ -427,7 +427,7 @@ static DEFINE_PER_CPU(struct tmigr_cpu, tmigr_cpu);
>  
>  static inline bool tmigr_is_not_available(struct tmigr_cpu *tmc)
>  {
> -	return !(tmc->tmgroup && tmc->online);
> +	return !(tmc->tmgroup && tmc->available);

Please rebase and test your patchset on top of:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
	timers/core

There is one more "->online" field to rename there.

Thanks.

-- 
Frederic Weisbecker
SUSE Labs

  reply	other threads:[~2025-11-12 15:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-04 10:47 [PATCH v14 0/7] timers: Exclude isolated cpus from timer migration Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 1/7] timers: Rename tmigr 'online' bit to 'available' Gabriele Monaco
2025-11-12 15:45   ` Frederic Weisbecker [this message]
2025-11-04 10:47 ` [PATCH v14 2/7] timers: Add the available mask in timer migration Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 3/7] timers: Use scoped_guard when setting/clearing the tmigr available flag Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 4/7] cgroup/cpuset: Rename update_unbound_workqueue_cpumask() to update_isolation_cpumasks() Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 5/7] sched/isolation: Force housekeeping if isolcpus and nohz_full don't leave any Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 6/7] cpumask: Add initialiser to use cleanup helpers Gabriele Monaco
2025-11-04 10:47 ` [PATCH v14 7/7] timers: Exclude isolated cpus from timer migration Gabriele Monaco
2025-11-10 13:06   ` Gabriele Monaco
2025-11-12 16:04   ` Frederic Weisbecker
2025-11-12 16:18     ` Gabriele Monaco
2025-11-12 16:59       ` Frederic Weisbecker

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=aRSrpgytUvrP6Res@localhost.localdomain \
    --to=frederic@kernel.org \
    --cc=anna-maria@linutronix.de \
    --cc=gmonaco@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llong@redhat.com \
    --cc=tglx@linutronix.de \
    /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