cpudata_32.h 713 B

123456789101112131415161718192021222324252627282930313233
  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 multiplier;
  15. unsigned int counter;
  16. #ifdef CONFIG_SMP
  17. unsigned int irq_resched_count;
  18. unsigned int irq_call_count;
  19. #endif
  20. int prom_node;
  21. int mid;
  22. int next;
  23. } cpuinfo_sparc;
  24. DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
  25. #define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
  26. #define local_cpu_data() __get_cpu_var(__cpu_data)
  27. #endif /* _SPARC_CPUDATA_H */