summaryrefslogtreecommitdiff
path: root/lib/raid/xor/powerpc/xor_arch.h
blob: 3b00a4a2fd67cc73a5d2ccf9316922a3d99a76aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *
 * Copyright (C) IBM Corporation, 2012
 *
 * Author: Anton Blanchard <anton@au.ibm.com>
 */
#include <asm/cpu_has_feature.h>

extern struct xor_block_template xor_block_altivec;

static __always_inline void __init arch_xor_init(void)
{
	xor_register(&xor_block_8regs);
	xor_register(&xor_block_8regs_p);
	xor_register(&xor_block_32regs);
	xor_register(&xor_block_32regs_p);
#ifdef CONFIG_ALTIVEC
	if (cpu_has_feature(CPU_FTR_ALTIVEC))
		xor_register(&xor_block_altivec);
#endif
}