tools/include/asm/alternative.h

Source file repositories/reference/linux-study-clean/tools/include/asm/alternative.h

File Facts

System
Linux kernel
Corpus path
tools/include/asm/alternative.h
Extension
.h
Size
353 bytes
Lines
20
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
#define _TOOLS_ASM_ALTERNATIVE_ASM_H

#if defined(__s390x__)
#ifdef __ASSEMBLY__
.macro ALTERNATIVE oldinstr, newinstr, feature
	\oldinstr
.endm
#endif
#else

/* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */

#define ALTERNATIVE #

#endif

#endif

Annotation

Implementation Notes