Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 1 | /* cpudata.h: Per-cpu parameters. |
| 2 | * |
| 3 | * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org) |
| 4 | * |
| 5 | * Based on include/asm/cpudata.h and Linux 2.4 smp.h |
| 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 | |
| 14 | typedef struct { |
| 15 | unsigned long udelay_val; |
| 16 | unsigned long clock_tick; |
| 17 | unsigned int multiplier; |
| 18 | unsigned int counter; |
Daniel Hellstrom | d6d0481 | 2011-05-02 00:08:51 +0000 | [diff] [blame] | 19 | #ifdef CONFIG_SMP |
| 20 | unsigned int irq_resched_count; |
| 21 | unsigned int irq_call_count; |
| 22 | #endif |
Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 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)) |
Daniel Hellstrom | d6d0481 | 2011-05-02 00:08:51 +0000 | [diff] [blame] | 30 | #define local_cpu_data() __get_cpu_var(__cpu_data) |
Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 31 | |
| 32 | #endif /* _SPARC_CPUDATA_H */ |