Patch for RaQ2 - cpu features.h
This replaces the cpu-probe.c hack we had before, which disabled ll_sc.. I followed the format of theother cpu-feature-overrides.h.
Signature · 3 lines
---- Jim Gifford [email protected]
include/asm-mips/cobalt/cpu-feature-overrides.h +24 -0
@@ -0,0 +1,24 @@ +/* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* +* Copyright (C) 2003, 2004 Chris Dearman +* Copyright (C) 2005 Ralf Baechle ([email protected]) +*/ +#ifndef __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H +#define __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H + +#include <linux/config.h> + +/* +* CPU feature overrides for Cobalt Servers +*/ + +#ifdef CONFIG_64BIT +#define cpu_has_llsc 0 +#else +#define cpu_has_llsc 1 +#endif + +#endif /* __ASM_COBALT_MIPS_CPU_FEATURE_OVERRIDES_H */