lkml.org 
[lkml]   [2013]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] arm64: advertise CPU features for modalias matching
On Mon, Nov 11, 2013 at 10:19:35AM +0000, Ard Biesheuvel wrote:
> +ssize_t arch_print_cpu_modalias(struct device *dev,
> + struct device_attribute *attr,
> + char *buf)
> +{
> + unsigned int caps;
> + ssize_t n;
> + int i;
> +
> + /*
> + * With 32 features maximum (taking 5 bytes each to print), we don't
> + * need to worry about overrunning the PAGE_SIZE sized buffer.
> + */
> + n = sprintf(buf, "cpu:type:arm64:feature:");

I would use "aarch64" here instead of arm64 for consistency with the
architecture mode, compiler triplet and ELF_PLATFORM definition in the
kernel.

--
Catalin


\
 
 \ /
  Last update: 2013-11-14 16:41    [W:0.063 / U:2.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site