summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 1afd3c7f9..812027e16 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -346,10 +346,20 @@ sub getATARAID {
values %l;
}
+
+# cpu_name : arch() =~ /^alpha/ ? "cpu " :
+# arch() =~ /^ppc/ ? "processor" : "vendor_id"
+
+# cpu_model : arch() =~ /^alpha/ ? "cpu model" :
+# arch() =~ /^ppc/ ? "cpu " : "model name"
+
+# cpu_freq = arch() =~ /^alpha/ ? "cycle frequency [Hz]" :
+# arch() =~ /^ppc/ ? "clock" : "cpu MHz"
+
sub getCPUs {
my (@cpus, $cpu);
foreach (cat_("/proc/cpuinfo")) {
- if (/^processor/) {
+ if (/^processor/) { # ix86 specific
push @cpus, $cpu if $cpu;
$cpu = {};
}