Path: blob/master/arch/sparc/include/asm/cpudata_64.h
17531 views
/* cpudata.h: Per-cpu parameters.1*2* Copyright (C) 2003, 2005, 2006 David S. Miller ([email protected])3*/45#ifndef _SPARC64_CPUDATA_H6#define _SPARC64_CPUDATA_H78#ifndef __ASSEMBLY__910#include <linux/percpu.h>11#include <linux/threads.h>1213typedef struct {14/* Dcache line 1 */15unsigned int __softirq_pending; /* must be 1st, see rtrap.S */16unsigned int __nmi_count;17unsigned long clock_tick; /* %tick's per second */18unsigned long __pad;19unsigned int irq0_irqs;20unsigned int __pad2;2122/* Dcache line 2, rarely used */23unsigned int dcache_size;24unsigned int dcache_line_size;25unsigned int icache_size;26unsigned int icache_line_size;27unsigned int ecache_size;28unsigned int ecache_line_size;29int core_id;30int proc_id;31} cpuinfo_sparc;3233DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);34#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))35#define local_cpu_data() __get_cpu_var(__cpu_data)3637extern const struct seq_operations cpuinfo_op;3839#endif /* !(__ASSEMBLY__) */4041#include <asm/trap_block.h>4243#endif /* _SPARC64_CPUDATA_H */444546