File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
arch/microblaze/kernel/cpu Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ static int show_cpuinfo(struct seq_file *m, void *v)
66
66
" MSR:\t\t%s\n"
67
67
" PCMP:\t\t%s\n"
68
68
" DIV:\t\t%s\n" ,
69
- (cpuinfo .use_instr & PVR0_USE_BARREL_MASK ) ? "yes" : "no" ,
70
- (cpuinfo .use_instr & PVR2_USE_MSR_INSTR ) ? "yes" : "no" ,
71
- (cpuinfo .use_instr & PVR2_USE_PCMP_INSTR ) ? "yes" : "no" ,
72
- (cpuinfo .use_instr & PVR0_USE_DIV_MASK ) ? "yes" : "no" );
69
+ str_yes_no (cpuinfo .use_instr & PVR0_USE_BARREL_MASK ),
70
+ str_yes_no (cpuinfo .use_instr & PVR2_USE_MSR_INSTR ),
71
+ str_yes_no (cpuinfo .use_instr & PVR2_USE_PCMP_INSTR ),
72
+ str_yes_no (cpuinfo .use_instr & PVR0_USE_DIV_MASK ));
73
73
74
74
seq_printf (m , " MMU:\t\t%x\n" , cpuinfo .mmu );
75
75
@@ -120,7 +120,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
120
120
121
121
seq_printf (m ,
122
122
"HW-Debug:\t%s\n" ,
123
- cpuinfo .hw_debug ? "yes" : "no" );
123
+ str_yes_no ( cpuinfo .hw_debug ) );
124
124
125
125
seq_printf (m ,
126
126
"PVR-USR1:\t%02x\n"
You can’t perform that action at this time.
0 commit comments