]> err.no Git - util-linux/commit
lscpu: add {32,64}-bit CPU modes detection
authorKarel Zak <kzak@redhat.com>
Thu, 7 Jan 2010 16:34:03 +0000 (17:34 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Jan 2010 16:34:03 +0000 (17:34 +0100)
commit79e8b41a4a17763ac8d2dffbe72504783d002ddc
tree76e7f4ebfe8f810cbee8b0ae74ea0fb14ed3e1dc
parente90709421ac86e2e81498143f75734e0b79f76d1
lscpu: add {32,64}-bit CPU modes detection

This patch add "CPU op-mode(s):" field that prints all supported CPU
operation modes. The field is based on CPU flags:

rm (real mode)          16-bit
tm (transparent mode)   32-bit
lm (long mode)          64-bit

Example:

$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
CPU(s):                2
Thread(s) per core:    1
Core(s) per socket:    2
CPU socket(s):         1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 15
Stepping:              11
CPU MHz:               1600.000
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c