mirror-linux/arch/x86/kernel/cpu
Ahmed S. Darwish 071f4ad649 x86/cacheinfo: Use sysfs_emit() for sysfs attributes show()
Per Documentation/filesystems/sysfs.rst, a sysfs attribute's show()
method should only use sysfs_emit() or sysfs_emit_at() when returning
values to user space.

Use sysfs_emit() for the AMD L3 cache sysfs attributes cache_disable_0,
cache_disable_1, and subcaches.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://lore.kernel.org/r/20250324133324.23458-15-darwi@linutronix.de
2025-03-25 10:22:43 +01:00
..
mce x86/mce/amd: Remove shared threshold bank plumbing 2025-01-03 19:05:35 +01:00
microcode x86/microcode: Update the Intel processor flag scan check 2025-03-19 11:19:38 +01:00
mtrr x86/mtrr: Modify a x86_model check to an Intel VFM check 2025-03-19 11:19:40 +01:00
resctrl - Remove the less generic CPU matching infra around struct x86_cpu_desc and 2025-01-21 09:30:59 -08:00
sgx x86/sgx: Warn explicitly if X86_FEATURE_SGX_LC is not enabled 2025-03-10 12:29:18 +01:00
.gitignore
Makefile x86/cacheinfo: Move AMD cache_disable_0/1 handling to separate file 2025-03-25 10:22:39 +01:00
acrn.c
amd.c x86/mm: Enable AMD translation cache extensions 2025-03-19 11:12:29 +01:00
amd_cache_disable.c x86/cacheinfo: Use sysfs_emit() for sysfs attributes show() 2025-03-25 10:22:43 +01:00
aperfmperf.c x86/sched: Add basic support for CPU capacity scaling 2024-09-04 13:36:40 +02:00
bugs.c x86/cpu/kvm: SRSO: Fix possible missing IBPB on VM-Exit 2025-02-11 10:07:52 -08:00
bus_lock.c x86/split_lock: Fix the delayed detection logic 2025-03-07 13:01:02 +01:00
cacheinfo.c x86/cacheinfo: Move AMD cache_disable_0/1 handling to separate file 2025-03-25 10:22:39 +01:00
centaur.c
common.c x86/cpufeatures: Warn about unmet CPU feature dependencies 2025-03-19 11:17:31 +01:00
cpu.h x86/cacheinfo: Move AMD cache_disable_0/1 handling to separate file 2025-03-25 10:22:39 +01:00
cpuid-deps.c x86/cpufeatures: Warn about unmet CPU feature dependencies 2025-03-19 11:17:31 +01:00
cyrix.c x86/CPU: Fix warm boot hang regression on AMD SC1100 SoC systems 2025-02-25 22:44:01 +01:00
debugfs.c x86/cpu: Prefix hexadecimal values with 0x in cpu_debug_show() 2025-02-27 13:26:53 +01:00
feat_ctl.c x86/cpu: Clarify the error message when BIOS does not support SGX 2024-08-25 14:41:19 +02:00
hygon.c x86/cpu: Simplify TLB entry count storage 2025-03-04 11:17:33 +01:00
hypervisor.c
intel.c x86/cpu: Introduce and use CPUID leaf 0x2 parsing helpers 2025-03-25 10:22:06 +01:00
intel_epb.c
match.c x86/cpu: Update x86_match_cpu() to also use cpu-type 2025-03-19 11:17:11 +01:00
mkcapflags.sh x86/cpufeatures: Flip the /proc/cpuinfo appearance logic 2024-06-20 21:04:22 +02:00
mshyperv.c hyperv: Switch from hyperv-tlfs.h to hyperv/hvhdk.h 2025-01-10 00:54:21 +00:00
perfctr-watchdog.c
powerflags.c
proc.c x86/cpu: Use str_yes_no() helper in show_cpuinfo_misc() 2024-10-26 15:37:15 +02:00
rdrand.c
scattered.c x86/cpu: Fix formatting of cpuid_bits[] in scattered.c 2024-10-28 13:51:05 +01:00
topology.c Merge branch 'linus' into x86/cleanups, to resolve conflict 2024-12-10 19:33:03 +01:00
topology.h
topology_amd.c x86/cpu: Add CPU type to struct cpuinfo_topology 2024-10-25 20:44:26 +02:00
topology_common.c x86/topology: Introduce topology_logical_core_id() 2024-12-02 12:01:35 +01:00
topology_ext.c
transmeta.c
tsx.c
umc.c
umwait.c
vmware.c x86/vmware: Parse MP tables for SEV-SNP enabled guests under VMware hypervisors 2025-03-13 19:01:09 +01:00
vortex.c
zhaoxin.c