blob: 050ef35b9dcf5224ead325d70a9274f9209ddc84 [file] [log] [blame]
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07001/* cpudata.h: Per-cpu parameters.
2 *
3 * Copyright (C) 2003, 2005, 2006 David S. Miller (davem@davemloft.net)
4 */
5
6#ifndef _SPARC64_CPUDATA_H
7#define _SPARC64_CPUDATA_H
8
Sam Ravnborgf5e706a2008-07-17 21:55:51 -07009#ifndef __ASSEMBLY__
10
11#include <linux/percpu.h>
12#include <linux/threads.h>
13
14typedef struct {
15 /* Dcache line 1 */
16 unsigned int __softirq_pending; /* must be 1st, see rtrap.S */
David S. Millere5553a62009-01-29 21:22:47 -080017 unsigned int __nmi_count;
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070018 unsigned long clock_tick; /* %tick's per second */
19 unsigned long __pad;
David S. Millerdaecbf52010-04-06 17:38:52 -070020 unsigned int irq0_irqs;
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070021 unsigned int __pad2;
22
23 /* Dcache line 2, rarely used */
24 unsigned int dcache_size;
25 unsigned int dcache_line_size;
26 unsigned int icache_size;
27 unsigned int icache_line_size;
28 unsigned int ecache_size;
29 unsigned int ecache_line_size;
30 int core_id;
31 int proc_id;
32} cpuinfo_sparc;
33
34DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
35#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
36#define local_cpu_data() __get_cpu_var(__cpu_data)
37
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070038extern const struct seq_operations cpuinfo_op;
39
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070040#endif /* !(__ASSEMBLY__) */
41
David S. Miller19f0fa32009-04-01 01:26:43 -070042#include <asm/trap_block.h>
Sam Ravnborgf5e706a2008-07-17 21:55:51 -070043
44#endif /* _SPARC64_CPUDATA_H */