Re: [RFC PATCH 3/4] driver: hwpf: Add Kconfig/Makefile to build hardware prefetch driver

From: Randy Dunlap
Date: Mon Oct 11 2021 - 00:53:06 EST


On 10/10/21 9:39 PM, Kohei Tarumizu wrote:
diff --git a/drivers/hwpf/Kconfig b/drivers/hwpf/Kconfig
new file mode 100644
index 000000000..24528ca85
--- /dev/null
+++ b/drivers/hwpf/Kconfig
@@ -0,0 +1,24 @@
+config ARCH_HAS_HARDWARE_PREFETCH
+ bool
+
+menuconfig HARDWARE_PREFETCH
+ bool "Hardware Prefetch Control"
+ depends on ARCH_HAS_HARDWARE_PREFETCH
+ default y
+ help
+ Hardware Prefetch Control Driver
+
+ This driver allows you to control the Hardware Prefetch mechanism.
+ If the hardware supports the mechanism, it provides a sysfs interface
+ for changeing the feature's enablement, prefetch distance and strongness.

changing


--
~Randy