linux/scripts/atomic
Mark Rutland 7ed7a15640 locking/atomic: scripts: factor out order template generation
Currently gen_proto_order_variants() hard codes the path for the templates used
for order fallbacks. Factor this out into a helper so that it can be reused
elsewhere.

This results in no change to the generated headers, so there should be
no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230605070124.3741859-17-mark.rutland@arm.com
2023-06-05 09:57:19 +02:00
..
fallbacks locking/atomic: make atomic*_{cmp,}xchg optional 2023-06-05 09:57:14 +02:00
atomic-tbl.sh locking/atomics: Change 'fold' to 'grep' 2019-02-11 14:27:33 +01:00
atomics.tbl atomics: Provide atomic_add_negative() variants 2023-03-28 10:39:29 +02:00
gen-atomic-fallback.sh locking/atomic: scripts: factor out order template generation 2023-06-05 09:57:19 +02:00
gen-atomic-instrumented.sh locking/atomic: scripts: remove leftover "${mult}" 2023-06-05 09:57:18 +02:00
gen-atomic-long.sh locking/atomic: add arch_atomic_long*() 2021-07-16 18:46:45 +02:00
gen-atomics.sh locking/atomic: centralize generated headers 2021-07-16 18:46:45 +02:00