diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index b5276c7e9be2882e2270f203d145bece72d6840e..91ad5cc95d85a776dd8fedc3bf560c1aec007996 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -138,7 +138,7 @@ INSTALL = install
 # explicitly what architecture to check for. Fix this up for yours..
 SPARSE_FLAGS = -D__BIG_ENDIAN__ -D__powerpc__
 
--include feature-tests.mak
+-include config/feature-tests.mak
 
 ifeq ($(call try-cc,$(SOURCE_HELLO),-Werror -fstack-protector-all),y)
 	CFLAGS := $(CFLAGS) -fstack-protector-all
diff --git a/tools/perf/feature-tests.mak b/tools/perf/config/feature-tests.mak
similarity index 100%
rename from tools/perf/feature-tests.mak
rename to tools/perf/config/feature-tests.mak