diff options
author | 2025-01-03 14:16:25 -0800 | |
---|---|---|
committer | 2025-01-03 14:16:25 -0800 | |
commit | ee063c23e48212a6af163f8d45560a92fcaec125 (patch) | |
tree | 896feada8c19b8fe7130ab16e3c6330e0ce6112d /arch | |
parent | Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma (diff) | |
parent | nios2: Use str_yes_no() helper in show_cpuinfo() (diff) | |
download | wireguard-linux-ee063c23e48212a6af163f8d45560a92fcaec125.tar.xz wireguard-linux-ee063c23e48212a6af163f8d45560a92fcaec125.zip |
Merge tag 'nios2_update_for_v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux
Pull nios2 fixlet from Dinh Nguyen:
- Use str_yes_no() helper function
* tag 'nios2_update_for_v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux:
nios2: Use str_yes_no() helper in show_cpuinfo()
Diffstat (limited to 'arch')
-rw-r--r-- | arch/nios2/kernel/cpuinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/nios2/kernel/cpuinfo.c b/arch/nios2/kernel/cpuinfo.c index 338849c430a5..7b1e8f9128e9 100644 --- a/arch/nios2/kernel/cpuinfo.c +++ b/arch/nios2/kernel/cpuinfo.c @@ -143,11 +143,11 @@ static int show_cpuinfo(struct seq_file *m, void *v) " DIV:\t\t%s\n" " BMX:\t\t%s\n" " CDX:\t\t%s\n", - cpuinfo.has_mul ? "yes" : "no", - cpuinfo.has_mulx ? "yes" : "no", - cpuinfo.has_div ? "yes" : "no", - cpuinfo.has_bmx ? "yes" : "no", - cpuinfo.has_cdx ? "yes" : "no"); + str_yes_no(cpuinfo.has_mul), + str_yes_no(cpuinfo.has_mulx), + str_yes_no(cpuinfo.has_div), + str_yes_no(cpuinfo.has_bmx), + str_yes_no(cpuinfo.has_cdx)); seq_printf(m, "Icache:\t\t%ukB, line length: %u\n", |