]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: add support for books
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 13 Jul 2011 03:46:18 +0000 (09:16 +0530)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Jul 2011 08:46:35 +0000 (10:46 +0200)
commit56baaa4e1fb9e98d62beb48ac41aa3ed8528e890
tree7dc968b2396361a47f8ee86d96055939d34096aa
parent64c9e22aa47ea262f8e01c2aff1d48890d6e4e8b
lscpu: add support for books

This patch adds support for books in cpu topology output. Books are
currently only present on the s390 architecture, however it looks like
others will follow to use the extra scheduling domain of the kernel.

Books are logically between sockets and nodes. In order to not break
any existing tools that might parse the output of lscpu the output
is changed so that books will follow nodes:
CPU,Core,Socket,Node,Book

In addition the readable output is changed from
"CPU socket(s):" to "Socket(s) per book:" or simply "Socket(s):" in the
absence of books.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c