linux/list.h: drop use of prefetch()
authorRasmus Villemoes <ravi@prevas.dk>
Wed, 7 May 2025 12:12:43 +0000 (14:12 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Jun 2025 14:05:04 +0000 (08:05 -0600)
commitc1c2b5c6a4c09fe57933b70ec6289795f732ac83
tree52b34630f49683b7506106ee7ddcec66e9527aec
parent48db49b0977cc1c9c9abf82c0fb704238fcef4fd
linux/list.h: drop use of prefetch()

The use of prefetch() in these list helpers was dropped back in 2011
in linux (e66eed651fd1 ("list: remove prefetching from regular list
iterators")). No arch in U-Boot defines any actual prefetch(), and as
the referenced commit says, it's usually not a win anyway.

Whole-sale sync of list.h is not really feasible, but we can
synchronize the macros containing a prefetch() with their linux
implementations as of v6.15-rc5, also importing the various helpers
needed, e.g. list_is_head() and list_next_entry().

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
include/linux/list.h