Commit 24915609 authored by Committed by Stephen Rothwell
locking/atomics: build atomic headers as required
Andrew and Ingo report that the check-atomics.sh script is simply too slow to run for every kernel build, and it's impractical to make it faster without rewriting it in something other than shell. Rather than committing the generated headers, let's regenerate these as-required for a pristine tree. That ensures they're always up-to-date, allows them to be built in parallel, and avoid redundant rebuilds, which is a 2-8s saving per incremental build. Since the results are not committed, it's very obvious that they should not be modified directly. If we need to generate more headers in future, it's easy to extend Makefile.genheader to permit this. I've verified that this works in the cases we previously had issues with (out-of-tree builds and where scripts have no execute permissions), and have tested these cases for both x86_64 and arm64. The diffstat looks nice, at least... Link: http://firstname.lastname@example.orgSigned-off-by: Mark Rutland <email@example.com> Cc: Boqun Feng <firstname.lastname@example.org> Cc: Borislav Petkov <email@example.com> Cc: Ingo Molnar <firstname.lastname@example.org> Cc: Peter Zijlstra <email@example.com> Cc: Will Deacon <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Stephen Rothwell <firstname.lastname@example.org>
Showing with 35 additions and 5115 deletions
This diff is collapsed.