lkml.org 
[lkml]   [2013]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [RFC part1 PATCH 2/7] ARM64 : Add dummy asm/cpu.h
    On Tue, Dec 03, 2013 at 04:36:46PM +0000, Hanjun Guo wrote:
    > ACPI requires a cpu.h, add a dummy one copied from arm. This will need
    > updated or replaced as ACPI based cpu hotplug for armv8 is worked out.

    What exactly requires cpu.h, and why?

    Why copy the file verbatim rather than factoring it out?

    >
    > Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
    > Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
    > ---
    > arch/arm64/include/asm/cpu.h | 25 +++++++++++++++++++++++++
    > 1 file changed, 25 insertions(+)
    > create mode 100644 arch/arm64/include/asm/cpu.h
    >
    > diff --git a/arch/arm64/include/asm/cpu.h b/arch/arm64/include/asm/cpu.h
    > new file mode 100644
    > index 0000000..dbeb98d
    > --- /dev/null
    > +++ b/arch/arm64/include/asm/cpu.h
    > @@ -0,0 +1,25 @@
    > +/*
    > + * Copyright (C) 2004-2005 ARM Ltd.
    > + *
    > + * This program is free software; you can redistribute it and/or modify
    > + * it under the terms of the GNU General Public License version 2 as
    > + * published by the Free Software Foundation.
    > + */
    > +#ifndef __ASM_ARM_CPU_H
    > +#define __ASM_ARM_CPU_H
    > +
    > +#include <linux/percpu.h>
    > +#include <linux/cpu.h>
    > +#include <linux/topology.h>
    > +
    > +struct cpuinfo_arm {
    > + struct cpu cpu;
    > + u32 cpuid;
    We use a u64 elsewhere for the mpidr_el1 in arm64.

    Thanks,
    Mark.


    \
     
     \ /
      Last update: 2013-12-03 18:41    [W:4.265 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site