lkml.org 
[lkml]   [2018]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/cpu: sort cpuinfo flags
On Wed, Dec 19, 2018 at 11:50:14AM -0800, Dave Hansen wrote:
> @@ -96,15 +168,11 @@ static int show_cpuinfo(struct seq_file
>
> show_cpuinfo_core(m, c, cpu);
> show_cpuinfo_misc(m, c);
> -
> - seq_puts(m, "flags\t\t:");
> - for (i = 0; i < 32*NCAPINTS; i++)
> - if (cpu_has(c, i) && x86_cap_flags[i] != NULL)
> - seq_printf(m, " %s", x86_cap_flags[i]);
> + show_cpuinfo_flags(m, c);
>
> seq_puts(m, "\nbugs\t\t:");
> for (i = 0; i < 32*NBUGINTS; i++) {
> - unsigned int bug_bit = 32*NCAPINTS + i;
> + unsigned int bug_bit = x86_NR_CAPS + i;

s/x86_NR_CAPS/X86_NR_CAPS/

>
> if (cpu_has_bug(c, bug_bit) && x86_bug_flags[i])
> seq_printf(m, " %s", x86_bug_flags[i]);
> _

--
Kirill A. Shutemov

\
 
 \ /
  Last update: 2018-12-20 13:08    [W:0.080 / U:2.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site