From 1d87b9b1d4c5935fa02c67ebd8dac7ef59da3489 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 17 Oct 2002 13:12:40 +0000 Subject: add some comments to getCPUs --- perl-install/detect_devices.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'perl-install') 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 = {}; } -- cgit v1.2.1