summaryrefslogtreecommitdiff
path: root/usr/src/cmd/perl
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/perl')
-rw-r--r--usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.pm7
-rw-r--r--usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.xs9
2 files changed, 8 insertions, 8 deletions
diff --git a/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.pm b/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.pm
index 98cd3353b1..b406bd386a 100644
--- a/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.pm
+++ b/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.pm
@@ -18,10 +18,7 @@
# CDDL HEADER END
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
# Intrs.pm provides the bootstrap for the private Sun::Solaris::Intrs module.
#
@@ -35,7 +32,7 @@ use DynaLoader;
use vars qw($VERSION @ISA @EXPORT_OK);
our @ISA = qw(Exporter DynaLoader);
-our @EXPORT_OK = qw(intrmove is_pcplusmp);
+our @EXPORT_OK = qw(intrmove is_apic);
our $VERSION = '0.02';
bootstrap Sun::Solaris::Intrs $VERSION;
diff --git a/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.xs b/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.xs
index d532daf734..2ba0217f42 100644
--- a/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.xs
+++ b/usr/src/cmd/perl/contrib/Sun/Solaris/Intrs/Intrs.xs
@@ -54,8 +54,9 @@ MODULE = Sun::Solaris::Intrs PACKAGE = Sun::Solaris::Intrs
PROTOTYPES: ENABLE
int
-intrmove(path, ino, cpu, num_ino)
+intrmove(path, oldcpu, ino, cpu, num_ino)
char *path
+ int oldcpu
int ino
int cpu
int num_ino
@@ -67,6 +68,7 @@ intrmove(path, ino, cpu, num_ino)
if ((fd = open_dev(path)) == -1) {
XSRETURN_UNDEF;
}
+ iset.old_cpu = oldcpu;
iset.ino = ino;
iset.cpu_id = cpu;
iset.flags = (num_ino > 1) ? PCITOOL_INTR_FLAG_SET_GROUP : 0;
@@ -81,7 +83,7 @@ intrmove(path, ino, cpu, num_ino)
XSRETURN_YES;
int
-is_pcplusmp(path)
+is_apic(path)
char *path
INIT:
@@ -101,7 +103,8 @@ is_pcplusmp(path)
XSRETURN_UNDEF;
}
- if (iinfo.ctlr_type == PCITOOL_CTLR_TYPE_PCPLUSMP) {
+ if (iinfo.ctlr_type == PCITOOL_CTLR_TYPE_PCPLUSMP ||
+ iinfo.ctlr_type == PCITOOL_CTLR_TYPE_APIX) {
XSRETURN_YES;
}