Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* cpudata.h: Per-cpu parameters.
0003  *
0004  * Copyright (C) 2003, 2005, 2006 David S. Miller (davem@davemloft.net)
0005  */
0006 
0007 #ifndef _SPARC64_CPUDATA_H
0008 #define _SPARC64_CPUDATA_H
0009 
0010 #ifndef __ASSEMBLY__
0011 
0012 typedef struct {
0013     /* Dcache line 1 */
0014     unsigned int    __softirq_pending; /* must be 1st, see rtrap.S */
0015     unsigned int    __nmi_count;
0016     unsigned long   clock_tick; /* %tick's per second */
0017     unsigned long   __pad;
0018     unsigned int    irq0_irqs;
0019     unsigned int    __pad2;
0020 
0021     /* Dcache line 2, rarely used */
0022     unsigned int    dcache_size;
0023     unsigned int    dcache_line_size;
0024     unsigned int    icache_size;
0025     unsigned int    icache_line_size;
0026     unsigned int    ecache_size;
0027     unsigned int    ecache_line_size;
0028     unsigned short  sock_id;    /* physical package */
0029     unsigned short  core_id;
0030     unsigned short  max_cache_id;   /* groupings of highest shared cache */
0031     signed short    proc_id;    /* strand (aka HW thread) id */
0032 } cpuinfo_sparc;
0033 
0034 DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
0035 #define cpu_data(__cpu)     per_cpu(__cpu_data, (__cpu))
0036 #define local_cpu_data()    (*this_cpu_ptr(&__cpu_data))
0037 
0038 #endif /* !(__ASSEMBLY__) */
0039 
0040 #include <asm/trap_block.h>
0041 
0042 #endif /* _SPARC64_CPUDATA_H */