summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-19 18:56:36 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-19 18:56:36 +0000
commit6eea01b8b858544ccb23eae53af78c53412c387c (patch)
tree627a1bb9d1e00cc961a631e4729c1276cc59dfa5
parent57c7b0590d9053448a762125ea8c5b09a69fb45e (diff)
downloaddrakx-6eea01b8b858544ccb23eae53af78c53412c387c.tar
drakx-6eea01b8b858544ccb23eae53af78c53412c387c.tar.gz
drakx-6eea01b8b858544ccb23eae53af78c53412c387c.tar.bz2
drakx-6eea01b8b858544ccb23eae53af78c53412c387c.tar.xz
drakx-6eea01b8b858544ccb23eae53af78c53412c387c.zip
(is_i586) simplify ; on less I/O on non x86 machines
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 8cc4935d3..d0f92694a 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -1157,10 +1157,8 @@ sub BIGMEM() {
}
sub is_i586() {
+ return 0 if arch() !~ /86/;
my $cpuinfo = cat_('/proc/cpuinfo');
- if (arch() !~ /86/) {
- return 0;
- }
$cpuinfo =~ /^cpu family\s*:\s*(\d+)/m && $1 < 6 ||
$cpuinfo =~ /^model name\s*:\s*Transmeta.* TM5800/m || # mdvbz#37866
!has_cpu_flag('cmov');