RE: [PATCH 0/8] Add hardware prefetch control driver for arm64 and x86
From: tarumizu.kohei@xxxxxxxxxxx
Date: Wed Jan 26 2022 - 04:31:54 EST
> 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)
```