1 #ifndef _ASM_IA64_SN_IDLE_H
2 #define _ASM_IA64_SN_IDLE_H
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
9 * Copyright (c) 2001-2002 Silicon Graphics, Inc. All rights reserved.
12 #include <linux/config.h>
13 #include <asm/sn/leds.h>
14 #include <asm/sn/simulator.h>
16 static __inline__ void
19 #ifdef CONFIG_IA64_SGI_AUTOTEST
21 extern int autotest_enabled;
22 if (autotest_enabled) {
23 extern void llsc_main(int);
24 llsc_main(smp_processor_id());
29 if (pda.idle_flag == 0) {
31 * Turn the activity LED off.
33 set_led_bits(0, LED_CPU_ACTIVITY);
36 #ifdef CONFIG_IA64_SGI_SN_SIM
37 if (IS_RUNNING_ON_SIMULATOR())
45 static __inline__ void
49 * Turn the activity LED on.
51 set_led_bits(LED_CPU_ACTIVITY, LED_CPU_ACTIVITY);
57 #endif /* _ASM_IA64_SN_IDLE_H */