Path: blob/master/arch/sparc/include/asm/cpudata_32.h
17612 views
/* cpudata.h: Per-cpu parameters.1*2* Copyright (C) 2004 Keith M Wesolowski ([email protected])3*4* Based on include/asm/cpudata.h and Linux 2.4 smp.h5* both (C) David S. Miller.6*/78#ifndef _SPARC_CPUDATA_H9#define _SPARC_CPUDATA_H1011#include <linux/percpu.h>1213typedef struct {14unsigned long udelay_val;15unsigned long clock_tick;16unsigned int multiplier;17unsigned int counter;18#ifdef CONFIG_SMP19unsigned int irq_resched_count;20unsigned int irq_call_count;21#endif22int prom_node;23int mid;24int next;25} cpuinfo_sparc;2627DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);28#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))29#define local_cpu_data() __get_cpu_var(__cpu_data)3031#endif /* _SPARC_CPUDATA_H */323334