mirror of
https://github.com/torvalds/linux.git
synced 2025-04-11 04:53:02 +00:00

Currently, almost all architectures have switched to GENERIC_CPU_DEVICES, except for arm32. Also switch over to GENERIC_CPU_DEVICES, and provide an arch_register_cpu() that populates the hotpluggable flag for arm32. The struct cpu in struct cpuinfo_arm is never used directly, remove it to use the one GENERIC_CPU_DEVICES provides. This also has the effect of moving the registration of CPUs from subsys to driver core initialisation, prior to any initcalls running. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
23 lines
370 B
C
23 lines
370 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* arch/arm/include/asm/cpu.h
|
|
*
|
|
* Copyright (C) 2004-2005 ARM Ltd.
|
|
*/
|
|
#ifndef __ASM_ARM_CPU_H
|
|
#define __ASM_ARM_CPU_H
|
|
|
|
#include <linux/percpu.h>
|
|
#include <linux/cpu.h>
|
|
|
|
struct cpuinfo_arm {
|
|
u32 cpuid;
|
|
#ifdef CONFIG_SMP
|
|
unsigned int loops_per_jiffy;
|
|
#endif
|
|
};
|
|
|
|
DECLARE_PER_CPU(struct cpuinfo_arm, cpu_data);
|
|
|
|
#endif
|