Commit 1007d021 authored by Jack Steiner's avatar Jack Steiner Committed by Tony Luck

[IA64-SGI] - New SN hardware support - no_wars

Disable some shub1-specific code when running on systems with shub2.
Signed-off-by: default avatarJack Steiner <steiner@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 2fdbb590
/* /*
* *
* *
* Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. * Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License * under the terms of version 2 of the GNU General Public License
...@@ -50,6 +50,7 @@ void sn_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -50,6 +50,7 @@ void sn_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
LED_CPU_HEARTBEAT, LED_CPU_HEARTBEAT); LED_CPU_HEARTBEAT, LED_CPU_HEARTBEAT);
} }
if (is_shub1()) {
if (enable_shub_wars_1_1()) { if (enable_shub_wars_1_1()) {
/* Bugfix code for SHUB 1.1 */ /* Bugfix code for SHUB 1.1 */
if (pda->pio_shub_war_cam_addr) if (pda->pio_shub_war_cam_addr)
...@@ -60,4 +61,5 @@ void sn_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -60,4 +61,5 @@ void sn_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
pda->sn_lb_int_war_ticks++; pda->sn_lb_int_war_ticks++;
if (pda->sn_lb_int_war_ticks >= SN_LB_INT_WAR_INTERVAL) if (pda->sn_lb_int_war_ticks >= SN_LB_INT_WAR_INTERVAL)
pda->sn_lb_int_war_ticks = 0; pda->sn_lb_int_war_ticks = 0;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment