From 5a1d4ee6db359887ad5b65150fa5de7312a06202 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 20 May 2011 07:13:50 -0700 Subject: irq-affinity: initialize sockets to 1 --- scripts/system/irq-affinity.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl index 6112de3e..d12b7ed0 100755 --- a/scripts/system/irq-affinity.pl +++ b/scripts/system/irq-affinity.pl @@ -74,8 +74,8 @@ sub irqinfo { # Determine number of cpus and cores sub cpuinfo { - my ( $cpus, $cores ); - my $sockets = 0; + my ($cpus, $cores); + my $sockets = 1; open( my $f, '<', "/proc/cpuinfo" ) or die "Can't read /proc/cpuinfo"; -- cgit v1.2.3