webengine/osswebengine/WebKitTools/Scripts/num-cpus
author Chetan Kapoor <chetank@symbian.org>
Wed, 16 Jun 2010 13:48:17 +0100
branchGCC_SURGE
changeset 75 cd0e9694f2ef
parent 0 dd21522fd290
permissions -rw-r--r--
Bug 2962 - GCC compilation issues in sf/mw/web -- Some Compilation erros fixed

#!/usr/bin/perl

use strict;
use warnings;

use Win32API::Registry 0.21 qw( :ALL );


my $key;
my $i = 0;
while (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\$i", 0, KEY_READ, $key)) {
    $i++;
    RegCloseKey($key);
}

print "$i\n";