block: allocate io_context upfront
[linux-2.6/libata-dev.git] / arch / sparc / include / asm / cpudata_32.h
blob0300d94c25b35722f30e72d36d2c558ebf3d8bc3
1 /* cpudata.h: Per-cpu parameters.
3 * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org)
5 * Based on include/asm/cpudata.h and Linux 2.4 smp.h
6 * both (C) David S. Miller.
7 */
9 #ifndef _SPARC_CPUDATA_H
10 #define _SPARC_CPUDATA_H
12 #include <linux/percpu.h>
14 typedef struct {
15 unsigned long udelay_val;
16 unsigned long clock_tick;
17 unsigned int counter;
18 #ifdef CONFIG_SMP
19 unsigned int irq_resched_count;
20 unsigned int irq_call_count;
21 #endif
22 int prom_node;
23 int mid;
24 int next;
25 } cpuinfo_sparc;
27 DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
28 #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
29 #define local_cpu_data() __get_cpu_var(__cpu_data)
31 #endif /* _SPARC_CPUDATA_H */