idle.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | idle.c (89b3098703bd2aa3237ef10a704e6a5838e6ea69) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * LoongArch idle loop support. 4 * 5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 6 */ 7#include <linux/cpu.h> 8#include <linux/irqflags.h> 9#include <asm/cpu.h> 10#include <asm/idle.h> 11 12void __cpuidle arch_cpu_idle(void) 13{ 14 raw_local_irq_enable(); 15 __arch_cpu_idle(); /* idle instruction needs irq enabled */ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * LoongArch idle loop support. 4 * 5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 6 */ 7#include <linux/cpu.h> 8#include <linux/irqflags.h> 9#include <asm/cpu.h> 10#include <asm/idle.h> 11 12void __cpuidle arch_cpu_idle(void) 13{ 14 raw_local_irq_enable(); 15 __arch_cpu_idle(); /* idle instruction needs irq enabled */ |
16 raw_local_irq_disable(); |
|
16} | 17} |