/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file "COPYING" in the main directory of this archive3* for more details.4*5* Copyright (c) 2001-2004 Silicon Graphics, Inc. All rights reserved.6*/78#include <asm/sn/leds.h>910void snidle(int state)11{12if (state) {13if (pda->idle_flag == 0) {14/*15* Turn the activity LED off.16*/17set_led_bits(0, LED_CPU_ACTIVITY);18}1920pda->idle_flag = 1;21} else {22/*23* Turn the activity LED on.24*/25set_led_bits(LED_CPU_ACTIVITY, LED_CPU_ACTIVITY);2627pda->idle_flag = 0;28}29}303132