Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
31 lines
595 B
C
31 lines
595 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (c) 2001-2004 Silicon Graphics, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <asm/sn/leds.h>
|
|
|
|
void snidle(int state)
|
|
{
|
|
if (state) {
|
|
if (pda->idle_flag == 0) {
|
|
/*
|
|
* Turn the activity LED off.
|
|
*/
|
|
set_led_bits(0, LED_CPU_ACTIVITY);
|
|
}
|
|
|
|
pda->idle_flag = 1;
|
|
} else {
|
|
/*
|
|
* Turn the activity LED on.
|
|
*/
|
|
set_led_bits(LED_CPU_ACTIVITY, LED_CPU_ACTIVITY);
|
|
|
|
pda->idle_flag = 0;
|
|
}
|
|
}
|