This is a snapshot of arm64 cortex-a cpu edac driver from msm-4.14 commit cd6d26aaaecf (edac: cortex: Snapshot arm64 cortex-a cpu edac driver). Change-Id: Ic84ceb52114947f17fc6d0fac87039d4b450f70a Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: Mukesh Ojha <mojha@codeaurora.org> [snaseem@codeaurora.org: Resolved restriction errors.] Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
27 lines
886 B
C
27 lines
886 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef ASM_EDAC_H
|
|
#define ASM_EDAC_H
|
|
|
|
#if defined(CONFIG_EDAC_CORTEX_ARM64) && \
|
|
!defined(CONFIG_EDAC_CORTEX_ARM64_DBE_IRQ_ONLY)
|
|
void arm64_check_cache_ecc(void *info);
|
|
#else
|
|
static inline void arm64_check_cache_ecc(void *info) { }
|
|
#endif
|
|
|
|
static inline void atomic_scrub(void *addr, int size) { }
|
|
|
|
#endif
|