cpudata.h 1.0 KB

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