cpudata_32.h 690 B

12345678910111213141516171819202122232425262728293031
  1. /* cpudata.h: Per-cpu parameters.
  2. *
  3. * Copyright (C) 2004 Keith M Wesolowski (wesolows@foobazco.org)
  4. *
  5. * Based on include/asm/cpudata.h and Linux 2.4 smp.h
  6. * both (C) David S. Miller.
  7. */
  8. #ifndef _SPARC_CPUDATA_H
  9. #define _SPARC_CPUDATA_H
  10. #include <linux/percpu.h>
  11. typedef struct {
  12. unsigned long udelay_val;
  13. unsigned long clock_tick;
  14. unsigned int counter;
  15. #ifdef CONFIG_SMP
  16. unsigned int irq_resched_count;
  17. unsigned int irq_call_count;
  18. #endif
  19. int prom_node;
  20. int mid;
  21. int next;
  22. } cpuinfo_sparc;
  23. DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
  24. #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
  25. #define local_cpu_data() (*this_cpu_ptr(&__cpu_data))
  26. #endif /* _SPARC_CPUDATA_H */