diff options
author | Greg Howard <ghoward@sgi.com> | 2005-04-25 13:28:52 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-04-25 13:28:52 -0700 |
commit | 67639deb099c6085acc447c1b7d6a17792dedad0 (patch) | |
tree | b9cdf0d92ff2c02e7ed182a93d7ea270ba752b10 /drivers/char/snsc.c | |
parent | b9e41d7fb62ae26adee84c18048037214ce5d866 (diff) | |
download | op-kernel-dev-67639deb099c6085acc447c1b7d6a17792dedad0.zip op-kernel-dev-67639deb099c6085acc447c1b7d6a17792dedad0.tar.gz |
[IA64] Altix system controller event handling
The following is an update of the patch I sent yesterday
(3/9/05) incorporating suggestions from Christoph Hellwig and
Andreas Schwab. It allows Altix and Altix-like systems to
handle environmental events generated by the system controllers,
and should apply on top of Jack Steiner's patch of 3/1/05 ("New
chipset support for SN platform") and Mark Goodwin's patch of
3/8/05 ("Altix SN topology support for new chipsets and pci
topology").
Signed-off-by: Greg Howard <ghoward@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'drivers/char/snsc.c')
-rw-r--r-- | drivers/char/snsc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c index ffb9143..e3c0b52 100644 --- a/drivers/char/snsc.c +++ b/drivers/char/snsc.c @@ -374,6 +374,7 @@ scdrv_init(void) void *salbuf; struct class_simple *snsc_class; dev_t first_dev, dev; + nasid_t event_nasid = ia64_sn_get_console_nasid(); if (alloc_chrdev_region(&first_dev, 0, numionodes, SYSCTL_BASENAME) < 0) { @@ -441,6 +442,13 @@ scdrv_init(void) ia64_sn_irtr_intr_enable(scd->scd_nasid, 0 /*ignored */ , SAL_IROUTER_INTR_RECV); + + /* on the console nasid, prepare to receive + * system controller environmental events + */ + if(scd->scd_nasid == event_nasid) { + scdrv_event_init(scd); + } } return 0; } |