alternative.h 353 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _TOOLS_ASM_ALTERNATIVE_ASM_H
  3. #define _TOOLS_ASM_ALTERNATIVE_ASM_H
  4. #if defined(__s390x__)
  5. #ifdef __ASSEMBLY__
  6. .macro ALTERNATIVE oldinstr, newinstr, feature
  7. \oldinstr
  8. .endm
  9. #endif
  10. #else
  11. /* Just disable it so we can build arch/x86/lib/memcpy_64.S for perf bench: */
  12. #define ALTERNATIVE #
  13. #endif
  14. #endif