]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - arch/sparc/include/asm/cpudata_32.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[mirror_ubuntu-artful-kernel.git] / arch / sparc / include / asm / cpudata_32.h
CommitLineData
f5e706ad
SR
1/* cpudata.h: Per-cpu parameters.
2 *
3 * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org)
4 *
a439fe51 5 * Based on include/asm/cpudata.h and Linux 2.4 smp.h
f5e706ad
SR
6 * both (C) David S. Miller.
7 */
8
9#ifndef _SPARC_CPUDATA_H
10#define _SPARC_CPUDATA_H
11
12#include <linux/percpu.h>
13
14typedef struct {
15 unsigned long udelay_val;
16 unsigned long clock_tick;
f5e706ad 17 unsigned int counter;
d6d04819
DH
18#ifdef CONFIG_SMP
19 unsigned int irq_resched_count;
20 unsigned int irq_call_count;
21#endif
f5e706ad
SR
22 int prom_node;
23 int mid;
24 int next;
25} cpuinfo_sparc;
26
27DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
28#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
d6d04819 29#define local_cpu_data() __get_cpu_var(__cpu_data)
f5e706ad
SR
30
31#endif /* _SPARC_CPUDATA_H */