Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
f5e706ad SR |
2 | /* cpudata.h: Per-cpu parameters. |
3 | * | |
4 | * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org) | |
5 | * | |
a439fe51 | 6 | * Based on include/asm/cpudata.h and Linux 2.4 smp.h |
f5e706ad SR |
7 | * both (C) David S. Miller. |
8 | */ | |
9 | ||
10 | #ifndef _SPARC_CPUDATA_H | |
11 | #define _SPARC_CPUDATA_H | |
12 | ||
13 | #include <linux/percpu.h> | |
14 | ||
15 | typedef struct { | |
16 | unsigned long udelay_val; | |
17 | unsigned long clock_tick; | |
f5e706ad | 18 | unsigned int counter; |
d6d04819 DH |
19 | #ifdef CONFIG_SMP |
20 | unsigned int irq_resched_count; | |
21 | unsigned int irq_call_count; | |
22 | #endif | |
f5e706ad SR |
23 | int prom_node; |
24 | int mid; | |
25 | int next; | |
26 | } cpuinfo_sparc; | |
27 | ||
28 | DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data); | |
29 | #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu)) | |
494fc421 | 30 | #define local_cpu_data() (*this_cpu_ptr(&__cpu_data)) |
f5e706ad SR |
31 | |
32 | #endif /* _SPARC_CPUDATA_H */ |