mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
803b0fc5c3
Add process management support for LoongArch, including: thread info definition, context switch and process tracing. Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
17 lines
365 B
C
17 lines
365 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* LoongArch idle loop support.
|
|
*
|
|
* Copyright (C) 2020-2022 Loongson Technology Corporation Limited
|
|
*/
|
|
#include <linux/cpu.h>
|
|
#include <linux/irqflags.h>
|
|
#include <asm/cpu.h>
|
|
#include <asm/idle.h>
|
|
|
|
void __cpuidle arch_cpu_idle(void)
|
|
{
|
|
raw_local_irq_enable();
|
|
__arch_cpu_idle(); /* idle instruction needs irq enabled */
|
|
}
|