From 40d4b080f17883ac6b39c74a5feb1af384ab6a51 Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Thu, 11 Jun 2020 16:57:39 +0200 Subject: [PATCH] nss-drv: Control fab scaling from package Makefile Lets control the fab scaling from the package Makefile instead of using kernel checks that dont work. Fab scaling in OpenWrt is done in a external way. Signed-off-by: Robert Marko --- Makefile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Makefile b/Makefile index 20729ab..2567dd4 100644 --- a/Makefile +++ b/Makefile @@ -405,15 +405,8 @@ NSS_CCFLAGS = -DNSS_DT_SUPPORT=1 -DNSS_FW_DBG_SUPPORT=0 -DNSS_PM_SUPPORT=0 ccflags-y += -I$(obj) endif -# Fabric scaling is supported in 3.14 and 4.4 only -ifneq ($(findstring 3.14, $(KERNELVERSION)),) -NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 -else ifneq ($(findstring 4.4, $(KERNELVERSION)),) -NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=1 -else -NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 -endif +NSS_CCFLAGS += -DNSS_FABRIC_SCALING_SUPPORT=0 # Disable Frequency scaling ifeq "$(NSS_FREQ_SCALE_DISABLE)" "y" ccflags-y += -DNSS_FREQ_SCALE_SUPPORT=0 -- 2.26.2