Re: [PATCHv3 1/6] atomics: add common header generation files

From: Andrew Morton
Date: Thu Nov 15 2018 - 18:10:53 EST


On Tue, 4 Sep 2018 11:48:25 +0100 Mark Rutland <mark.rutland@xxxxxxx> wrote:

> To minimize repetition, to allow for future rework, and to ensure
> regularity of the various atomic APIs, we'd like to automatically
> generate (the bulk of) a number of headers related to atomics.
>
> This patch adds the infrastructure to do so, leaving actual conversion
> of headers to subsequent patches.

This thing is appallingly slow. `sh scripts/atomic/check-atomics.sh'
takes 8 seconds on a machine which builds an allnoconfig kernel in 30
seconds.

Um, no. Just no. Please find a way to make this overhead go away.