Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Russell King | 4baa992 | 2008-08-02 10:55:55 +0100 | [diff] [blame] | 3 | * arch/arm/include/asm/cpu.h |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * |
5 | * Copyright (C) 2004-2005 ARM Ltd. | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | */ |
7 | #ifndef __ASM_ARM_CPU_H | ||||
8 | #define __ASM_ARM_CPU_H | ||||
9 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | #include <linux/percpu.h> |
Santosh Shilimkar | 62a8c5b | 2010-01-10 09:21:53 +0100 | [diff] [blame] | 11 | #include <linux/cpu.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
13 | struct cpuinfo_arm { | ||||
14 | struct cpu cpu; | ||||
Lorenzo Pieralisi | e8d432c | 2012-11-06 11:57:43 +0000 | [diff] [blame] | 15 | u32 cpuid; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #ifdef CONFIG_SMP |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | unsigned int loops_per_jiffy; |
18 | #endif | ||||
19 | }; | ||||
20 | |||||
21 | DECLARE_PER_CPU(struct cpuinfo_arm, cpu_data); | ||||
22 | |||||
23 | #endif |