diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-09-08 21:43:21 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-09-20 09:21:53 +0900 |
| commit | 95573cac25c6b11f02d599d18e9a1c778706e838 (patch) | |
| tree | 3659184dcba1d582b845854d326859fdc9048d64 /scripts/kconfig/confdata.c | |
| parent | f93d6bfbd2f74d79041c153a59df5336f6e9a14a (diff) | |
kconfig: cache expression values
Cache expression values to avoid recalculating them repeatedly.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/confdata.c')
| -rw-r--r-- | scripts/kconfig/confdata.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index d8849dfb06db..4286d5e7f95d 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -396,6 +396,8 @@ load: } } + expr_invalidate_all(); + while (getline_stripped(&line, &line_asize, in) != -1) { struct menu *choice; |