lkml.org 
[lkml]   [2015]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/4] x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros

* Borislav Petkov <bp@alien8.de> wrote:

> static int __init chacha20_simd_mod_init(void)
> {
> - if (!cpu_has_ssse3)
> + if (!boot_cpu_has(X86_FEATURE_SSSE3))
> return -ENODEV;

Btw., could we rename 'boot_cpu_has()' to the more appropriate (and shorter!)
'system_has()' form?

'boot cpu' is a conceptual misnomer here really: it's just an implementational
detail that we are looking at the boot CPU's flags, what we really mean to express
is that these are system-wide features with no per-cpu properties.

Agreed?

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-12-07 11:01    [W:0.085 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site