webengine/osswebengine/WebKitTools/Scripts/num-cpus
author tahirm@symbian.org
Tue, 29 Sep 2009 14:16:06 +0100
branchRCL_1
changeset 9 9cbc205f4c45
parent 0 dd21522fd290
permissions -rw-r--r--
Created branch for release codeline RCL_1, for maintenance changes to the Symbian^2 platform

#!/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";