| 
									
										
										
										
											2008-07-17 21:55:51 -07:00
										 |  |  | /* cpudata.h: Per-cpu parameters.
 | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Copyright (C) 2003, 2005, 2006 David S. Miller (davem@davemloft.net) | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef _SPARC64_CPUDATA_H
 | 
					
						
							|  |  |  | #define _SPARC64_CPUDATA_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __ASSEMBLY__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <linux/percpu.h>
 | 
					
						
							|  |  |  | #include <linux/threads.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | typedef struct { | 
					
						
							|  |  |  | 	/* Dcache line 1 */ | 
					
						
							|  |  |  | 	unsigned int	__softirq_pending; /* must be 1st, see rtrap.S */ | 
					
						
							| 
									
										
										
										
											2009-01-29 21:22:47 -08:00
										 |  |  | 	unsigned int	__nmi_count; | 
					
						
							| 
									
										
										
										
											2008-07-17 21:55:51 -07:00
										 |  |  | 	unsigned long	clock_tick;	/* %tick's per second */ | 
					
						
							|  |  |  | 	unsigned long	__pad; | 
					
						
							| 
									
										
										
										
											2010-04-06 17:38:52 -07:00
										 |  |  | 	unsigned int	irq0_irqs; | 
					
						
							| 
									
										
										
										
											2008-07-17 21:55:51 -07:00
										 |  |  | 	unsigned int	__pad2; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	/* Dcache line 2, rarely used */ | 
					
						
							|  |  |  | 	unsigned int	dcache_size; | 
					
						
							|  |  |  | 	unsigned int	dcache_line_size; | 
					
						
							|  |  |  | 	unsigned int	icache_size; | 
					
						
							|  |  |  | 	unsigned int	icache_line_size; | 
					
						
							|  |  |  | 	unsigned int	ecache_size; | 
					
						
							|  |  |  | 	unsigned int	ecache_line_size; | 
					
						
							|  |  |  | 	int		core_id; | 
					
						
							|  |  |  | 	int		proc_id; | 
					
						
							|  |  |  | } cpuinfo_sparc; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data); | 
					
						
							|  |  |  | #define cpu_data(__cpu)		per_cpu(__cpu_data, (__cpu))
 | 
					
						
							|  |  |  | #define local_cpu_data()	__get_cpu_var(__cpu_data)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern const struct seq_operations cpuinfo_op; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* !(__ASSEMBLY__) */
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-04-01 01:26:43 -07:00
										 |  |  | #include <asm/trap_block.h>
 | 
					
						
							| 
									
										
										
										
											2008-07-17 21:55:51 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | #endif /* _SPARC64_CPUDATA_H */
 |