Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ASM_POWERPC_DT_CPU_FTRS_H
0003 #define __ASM_POWERPC_DT_CPU_FTRS_H
0004 
0005 /*
0006  *  Copyright 2017, IBM Corporation
0007  *  cpufeatures is the new way to discover CPU features with /cpus/features
0008  *  devicetree. This supersedes PVR based discovery ("cputable"), and older
0009  *  device tree feature advertisement.
0010  */
0011 
0012 #include <linux/types.h>
0013 #include <uapi/asm/cputable.h>
0014 
0015 #ifdef CONFIG_PPC_DT_CPU_FTRS
0016 bool dt_cpu_ftrs_init(void *fdt);
0017 void dt_cpu_ftrs_scan(void);
0018 bool dt_cpu_ftrs_in_use(void);
0019 #else
0020 static inline bool dt_cpu_ftrs_init(void *fdt) { return false; }
0021 static inline void dt_cpu_ftrs_scan(void) { }
0022 static inline bool dt_cpu_ftrs_in_use(void) { return false; }
0023 #endif
0024 
0025 #endif /* __ASM_POWERPC_DT_CPU_FTRS_H */