Message ID | 1398432017-8506-4-git-send-email-hanjun.guo@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 25 Apr 2014 21:20:09 +0800, Hanjun Guo <hanjun.guo@linaro.org> wrote: > ACPI core requires a cpu.h, add a dummy one here temporarily. > This file will be updated in the future to add definitions for > arch_(un)register_cpu which are required for ACPI based physical > CPU hotplug when these standards have be ratified by the ASWG. > > Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org> > Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> > --- > arch/arm64/include/asm/cpu.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) > create mode 100644 arch/arm64/include/asm/cpu.h I think we're trying to get away from these empty header stubs by putting them in asm-generic. Arnd, care to comment here? g. > > diff --git a/arch/arm64/include/asm/cpu.h b/arch/arm64/include/asm/cpu.h > new file mode 100644 > index 0000000..cee7d3f > --- /dev/null > +++ b/arch/arm64/include/asm/cpu.h > @@ -0,0 +1,11 @@ > +/* > + * Copyright (C) 2013-2014 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_CPU_H > +#define __ASM_CPU_H > + > +#endif > -- > 1.7.9.5 >
On Tuesday 29 April 2014 10:40:55 Grant Likely wrote: > On Fri, 25 Apr 2014 21:20:09 +0800, Hanjun Guo <hanjun.guo@linaro.org> wrote: > > ACPI core requires a cpu.h, add a dummy one here temporarily. > > This file will be updated in the future to add definitions for > > arch_(un)register_cpu which are required for ACPI based physical > > CPU hotplug when these standards have be ratified by the ASWG. > > > > Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org> > > Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> > > --- > > arch/arm64/include/asm/cpu.h | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > create mode 100644 arch/arm64/include/asm/cpu.h > > I think we're trying to get away from these empty header stubs by > putting them in asm-generic. Arnd, care to comment here? I started a reply yesterday on a similar note, but didn't send it, as the comment explains that it will be needed for the arch_(un)register_cpu() declarations later, which seems reasonable. On second thought, we could probably just put the declarations into include/linux/cpu.h, since the prototypes are architecture independent, they just happen to be implemented by only a subset of the architectures. Arnd
diff --git a/arch/arm64/include/asm/cpu.h b/arch/arm64/include/asm/cpu.h new file mode 100644 index 0000000..cee7d3f --- /dev/null +++ b/arch/arm64/include/asm/cpu.h @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2013-2014 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_CPU_H +#define __ASM_CPU_H + +#endif