[PATCH v4 6/8] x86: Add hardware prefetch control support for x86

Greg KH gregkh at linuxfoundation.org
Tue May 17 23:44:48 PDT 2022


On Wed, May 18, 2022 at 03:30:30PM +0900, Kohei Tarumizu wrote:
> Adds module init/exit code to create sysfs attributes for x86 with
> "hardware_prefetcher_enable", "ip_prefetcher_enable" and
> "adjacent_cache_line_prefetcher_enable".
> 
> This driver works only if a CPU model is mapped to type of register
> specification(e.g. TYPE_L12_BASE) in pfctl_match[].

How will the driver be automatically loaded if this is the case or not?
You can not rely on userspace knowing to load a driver on its own,
please tie into the proper device discovery.

thanks,

greg k-h



More information about the linux-arm-kernel mailing list