svn commit: r364203 - stable/12/sys/compat/linsysfs
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Aug 13 18:42:11 UTC 2020
Author: trasz
Date: Thu Aug 13 18:42:10 2020
New Revision: 364203
URL: https://svnweb.freebsd.org/changeset/base/364203
Log:
MFC r347015:
Add sys/devices/system/cpu/{possible,present} to linsysfs(5).
That makes Linux lscpu(1) work.
Sponsored by: The FreeBSD Foundation
Modified:
stable/12/sys/compat/linsysfs/linsysfs.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linsysfs/linsysfs.c
==============================================================================
--- stable/12/sys/compat/linsysfs/linsysfs.c Thu Aug 13 18:35:29 2020 (r364202)
+++ stable/12/sys/compat/linsysfs/linsysfs.c Thu Aug 13 18:42:10 2020 (r364203)
@@ -561,7 +561,7 @@ linsysfs_run_bus(device_t dev, struct pfs_node *dir, s
}
/*
- * Filler function for sys/devices/system/cpu/online
+ * Filler function for sys/devices/system/cpu/{online,possible,present}
*/
static int
linsysfs_cpuonline(PFS_FILL_ARGS)
@@ -661,6 +661,10 @@ linsysfs_init(PFS_INIT_ARGS)
cpu = pfs_create_dir(sys, "cpu", NULL, NULL, NULL, 0);
pfs_create_file(cpu, "online", &linsysfs_cpuonline,
+ NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(cpu, "possible", &linsysfs_cpuonline,
+ NULL, NULL, NULL, PFS_RD);
+ pfs_create_file(cpu, "present", &linsysfs_cpuonline,
NULL, NULL, NULL, PFS_RD);
linsysfs_listcpus(cpu);
More information about the svn-src-stable-12
mailing list