summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-10-17 13:12:40 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-10-17 13:12:40 +0000
commit1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489 (patch)
tree843404e89b7f51214922717cd628e37a22dee536
parent24e01720ca5535782944bc5c5440d98737e14b00 (diff)
downloaddrakx-backup-do-not-use-1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489.tar
drakx-backup-do-not-use-1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489.tar.gz
drakx-backup-do-not-use-1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489.tar.bz2
drakx-backup-do-not-use-1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489.tar.xz
drakx-backup-do-not-use-1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489.zip
add some comments to getCPUs
-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 = {};
}