]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: read_hypervisor_dmi: only fallback to memory scan on x86/x86_64
authorStewart Smith <stewart@linux.vnet.ibm.com>
Tue, 4 Mar 2014 04:39:41 +0000 (15:39 +1100)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Apr 2014 09:55:07 +0000 (11:55 +0200)
commita4502fc9e7a6e9b1c7f1d2e12589a91c83341246
treecdc907884c3952479fa9113b6b679e10a4fb98b1
parent9a52e7035630bf84be65823a2fed4fc452de13a5
lscpu: read_hypervisor_dmi: only fallback to memory scan on x86/x86_64

As the comment in the code says, this method is really only valid
on x86 and x86_64, so add a #ifdef for those architectures around
that code block.

This was causing "Program lscpu tried to access /dev/mem between f0000->100000."
warnings on some ppc64 machines.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
sys-utils/lscpu-dmi.c