mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 10:58:18 +07:00
174dfb1286
The crypto code currently relies on kernel_mode_begin_partial() being available. Until the corresponding crypto patches are merged, define this macro temporarily, though with different semantics as it cannot be called in interrupt context. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
30 lines
815 B
C
30 lines
815 B
C
/*
|
|
* linux/arch/arm64/include/asm/neon.h
|
|
*
|
|
* Copyright (C) 2013 Linaro Ltd <ard.biesheuvel@linaro.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASM_NEON_H
|
|
#define __ASM_NEON_H
|
|
|
|
#include <linux/types.h>
|
|
#include <asm/fpsimd.h>
|
|
|
|
#define cpu_has_neon() system_supports_fpsimd()
|
|
|
|
void kernel_neon_begin(void);
|
|
void kernel_neon_end(void);
|
|
|
|
/*
|
|
* Temporary macro to allow the crypto code to compile. Note that the
|
|
* semantics of kernel_neon_begin_partial() are now different from the
|
|
* original as it does not allow being called in an interrupt context.
|
|
*/
|
|
#define kernel_neon_begin_partial(num_regs) kernel_neon_begin()
|
|
|
|
#endif /* ! __ASM_NEON_H */
|