[PATCH 0/8] Add hardware prefetch control driver for arm64 and x86

tarumizu.kohei at fujitsu.com tarumizu.kohei at fujitsu.com
Wed Jan 26 01:24:35 PST 2022


> Doesn't this break the one-value-per-file sysfs rules?

Sorry, I forgot the sysfs rules.

The current interface specification was decided referring to the
specification of /sys/class/rnbd-client/ctl/map_device. However,
I thought that the current specification of preftch_control was
inappropriate because it relevant to "Mixing types, expressing
multiple lines of data" in Documentation/filesystems/sysfs.rst.

The next version patch divides the attribute file by option, as
described below.

* Current version interface

```
/sys/devices/system/cpu/cpu0/cache/index0/
	prefetch_control (attribute file)
```

* Next version interface look like this

```
/sys/devices/system/cpu/cpu0/cache/index0/prefetch_control/
	hardware_prefetcher_enable (attribute file)
	ip_prefetcher_enable (attribute file)
```


More information about the linux-arm-kernel mailing list