U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice Chotard <patrice.chotard@foss.st.com>
To: <u-boot@lists.denx.de>
Cc: Stefan Roese <stefan.roese@mailbox.org>,
	Tom Rini <trini@konsulko.com>,
	Marek Vasut <marek.vasut@mailbox.org>,
	Patrice Chotard <patrice.chotard@foss.st.com>,
	Rasmus Villemoes <rv@rasmusvillemoes.dk>
Subject: [PATCH v3 0/2] cyclic: update and optimization
Date: Mon, 6 Jul 2026 18:06:07 +0200	[thread overview]
Message-ID: <20260706-optimize_cyclic_run-v3-0-06ecbd74ef7c@foss.st.com> (raw)

First patch is replacing uint64_t by u64 as suggested by b4
Second patch optimizes cyclic_run() to parse cyclic list only 
if a cyclic function's timestamp is elapsed.

To: u-boot@lists.denx.de
Cc: Stefan Roese <stefan.roese@mailbox.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Marek Vasut <marek.vasut@mailbox.org>

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
Changes in v3:
- Rework cyclic_run() to not call get_timer_us() on each entry.
- Link to v2: https://patch.msgid.link/20260703-optimize_cyclic_run-v2-0-81762cff0b17@foss.st.com

Changes in v2:
- move cyclic with nearest deadline on list's head.
- Link to v1: https://patch.msgid.link/20260702-optimize_cyclic_run-v1-0-92c5a7011f54@foss.st.com

To: u-boot@lists.denx.de
Cc: Stefan Roese <stefan.roese@mailbox.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Marek Vasut <marek.vasut@mailbox.org>
Cc: Rasmus Villemoes <rv@rasmusvillemoes.dk>

---
Patrice Chotard (2):
      cyclic: replace uint64_t by u64 suggested by b4
      cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe()

 common/cyclic.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
base-commit: 1296a428c67cf103eca482d4a63349661c1b799f
change-id: 20260702-optimize_cyclic_run-ecdc46f12829

Best regards,
--  
Patrice Chotard <patrice.chotard@foss.st.com>


             reply	other threads:[~2026-07-06 16:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <06AYLlZJayftY3ITyG07ouD_oc-X0pMFXqzrLEm_rtDW1xG8060KvmGZPZ_IQJ1g5Bz2KXoMLI4N3lrK61fDjg==@protonmail.internalid>
2026-07-06 16:06 ` Patrice Chotard [this message]
2026-07-06 16:06   ` [PATCH v3 1/2] cyclic: replace uint64_t by u64 suggested by b4 Patrice Chotard
2026-07-06 16:06   ` [PATCH v3 2/2] cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe() Patrice Chotard
2026-07-06 17:28   ` [PATCH v3 0/2] cyclic: update and optimization Rasmus Villemoes
2026-07-16 23:25   ` Tom Rini

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=20260706-optimize_cyclic_run-v3-0-06ecbd74ef7c@foss.st.com \
    --to=patrice.chotard@foss.st.com \
    --cc=marek.vasut@mailbox.org \
    --cc=rv@rasmusvillemoes.dk \
    --cc=stefan.roese@mailbox.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.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