cache.h (62b31a045757eac81fed94b19df47418a0818528) | cache.h (33def8498fdde180023444b08e12b72a9efed41d) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* $Id: cache.h,v 1.6 2004/03/11 18:08:05 lethal Exp $ 3 * 4 * include/asm-sh/cache.h 5 * 6 * Copyright 1999 (C) Niibe Yutaka 7 * Copyright 2002, 2003 (C) Paul Mundt 8 */ 9#ifndef __ASM_SH_CACHE_H 10#define __ASM_SH_CACHE_H 11 12#include <linux/init.h> 13#include <cpu/cache.h> 14 15#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) 16 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2/* $Id: cache.h,v 1.6 2004/03/11 18:08:05 lethal Exp $ 3 * 4 * include/asm-sh/cache.h 5 * 6 * Copyright 1999 (C) Niibe Yutaka 7 * Copyright 2002, 2003 (C) Paul Mundt 8 */ 9#ifndef __ASM_SH_CACHE_H 10#define __ASM_SH_CACHE_H 11 12#include <linux/init.h> 13#include <cpu/cache.h> 14 15#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) 16 |
17#define __read_mostly __attribute__((__section__(".data..read_mostly"))) | 17#define __read_mostly __section(".data..read_mostly") |
18 19#ifndef __ASSEMBLY__ 20struct cache_info { 21 unsigned int ways; /* Number of cache ways */ 22 unsigned int sets; /* Number of cache sets */ 23 unsigned int linesz; /* Cache line size (bytes) */ 24 25 unsigned int way_size; /* sets * line size */ --- 21 unchanged lines hidden --- | 18 19#ifndef __ASSEMBLY__ 20struct cache_info { 21 unsigned int ways; /* Number of cache ways */ 22 unsigned int sets; /* Number of cache sets */ 23 unsigned int linesz; /* Cache line size (bytes) */ 24 25 unsigned int way_size; /* sets * line size */ --- 21 unchanged lines hidden --- |