cpudata_64.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* cpudata.h: Per-cpu parameters.
  2. *
  3. * Copyright (C) 2003, 2005, 2006 David S. Miller (davem@davemloft.net)
  4. */
  5. #ifndef _SPARC64_CPUDATA_H
  6. #define _SPARC64_CPUDATA_H
  7. #ifndef __ASSEMBLY__
  8. #include <linux/percpu.h>
  9. #include <linux/threads.h>
  10. typedef struct {
  11. /* Dcache line 1 */
  12. unsigned int __softirq_pending; /* must be 1st, see rtrap.S */
  13. unsigned int __nmi_count;
  14. unsigned long clock_tick; /* %tick's per second */
  15. unsigned long __pad;
  16. unsigned int __pad1;
  17. unsigned int __pad2;
  18. /* Dcache line 2, rarely used */
  19. unsigned int dcache_size;
  20. unsigned int dcache_line_size;
  21. unsigned int icache_size;
  22. unsigned int icache_line_size;
  23. unsigned int ecache_size;
  24. unsigned int ecache_line_size;
  25. int core_id;
  26. int proc_id;
  27. } cpuinfo_sparc;
  28. DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
  29. #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
  30. #define local_cpu_data() __get_cpu_var(__cpu_data)
  31. extern const struct seq_operations cpuinfo_op;
  32. #endif /* !(__ASSEMBLY__) */
  33. #include <asm/trap_block.h>
  34. #endif /* _SPARC64_CPUDATA_H */