Skip to content

Commit

Permalink
x86/cpufeatures: Flip the /proc/cpuinfo appearance logic
Browse files Browse the repository at this point in the history
I'm getting tired of telling people to put a magic "" in the

  #define X86_FEATURE		/* "" ... */

comment to hide the new feature flag from the user-visible
/proc/cpuinfo.

Flip the logic to make it explicit: an explicit "<name>" in the comment
adds the flag to /proc/cpuinfo and otherwise not, by default.

Add the "<name>" of all the existing flags to keep backwards
compatibility with userspace.

There should be no functional changes resulting from this.

Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240618113840.24163-1-bp@kernel.org
  • Loading branch information
Borislav Petkov (AMD) committed Jun 20, 2024
1 parent 501bd73 commit 78ce84b
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 457 deletions.
Loading

0 comments on commit 78ce84b

Please sign in to comment.