Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* cpudata.h: Per-cpu parameters. |
| 2 | * |
David S. Miller | d7ce78f | 2005-08-29 22:46:43 -0700 | [diff] [blame] | 3 | * Copyright (C) 2003, 2005 David S. Miller (davem@redhat.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _SPARC64_CPUDATA_H |
| 7 | #define _SPARC64_CPUDATA_H |
| 8 | |
| 9 | #include <linux/percpu.h> |
| 10 | |
| 11 | typedef struct { |
| 12 | /* Dcache line 1 */ |
David S. Miller | d7ce78f | 2005-08-29 22:46:43 -0700 | [diff] [blame] | 13 | unsigned int __softirq_pending; /* must be 1st, see rtrap.S */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | unsigned int multiplier; |
| 15 | unsigned int counter; |
| 16 | unsigned int idle_volume; |
| 17 | unsigned long clock_tick; /* %tick's per second */ |
| 18 | unsigned long udelay_val; |
| 19 | |
| 20 | /* Dcache line 2 */ |
| 21 | unsigned int pgcache_size; |
| 22 | unsigned int __pad1; |
| 23 | unsigned long *pte_cache[2]; |
| 24 | unsigned long *pgd_cache; |
David S. Miller | 80dc0d6 | 2005-09-26 00:32:17 -0700 | [diff] [blame] | 25 | |
| 26 | /* Dcache line 3, rarely used */ |
| 27 | unsigned int dcache_size; |
| 28 | unsigned int dcache_line_size; |
| 29 | unsigned int icache_size; |
| 30 | unsigned int icache_line_size; |
| 31 | unsigned int ecache_size; |
| 32 | unsigned int ecache_line_size; |
| 33 | unsigned int __pad2; |
| 34 | unsigned int __pad3; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | } cpuinfo_sparc; |
| 36 | |
| 37 | DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data); |
| 38 | #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu)) |
| 39 | #define local_cpu_data() __get_cpu_var(__cpu_data) |
| 40 | |
| 41 | #endif /* _SPARC64_CPUDATA_H */ |