arch/openrisc/include/asm/cpuinfo.h

Source file repositories/reference/linux-study-clean/arch/openrisc/include/asm/cpuinfo.h

File Facts

System
Linux kernel
Corpus path
arch/openrisc/include/asm/cpuinfo.h
Extension
.h
Size
931 bytes
Lines
46
Domain
Architecture Layer
Bucket
arch/openrisc
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

struct cache_desc {
	u32 size;
	u32 sets;
	u32 block_size;
	u32 ways;
};

struct cpuinfo_or1k {
	u32 clock_frequency;

	struct cache_desc icache;
	struct cache_desc dcache;

	u16 coreid;
};

extern struct cpuinfo_or1k cpuinfo_or1k[NR_CPUS];
extern void setup_cpuinfo(void);

/*
 * Check if the cache component exists.
 */
extern bool cpu_cache_is_present(const unsigned int cache_type);

#endif /* __ASM_OPENRISC_CPUINFO_H */

Annotation

Implementation Notes