/* SPDX-License-Identifier: GPL-2.0 */1/* cpudata.h: Per-cpu parameters.2*3* Copyright (C) 2004 Keith M Wesolowski ([email protected])4*5* Based on include/asm/cpudata.h and Linux 2.4 smp.h6* both (C) David S. Miller.7*/89#ifndef _SPARC_CPUDATA_H10#define _SPARC_CPUDATA_H1112#include <linux/percpu.h>1314typedef struct {15unsigned long udelay_val;16unsigned long clock_tick;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() (*this_cpu_ptr(&__cpu_data))3031#endif /* _SPARC_CPUDATA_H */323334