process.c (4f2c0a4acffbec01079c28f839422e64ddeff004) process.c (89b3098703bd2aa3237ef10a704e6a5838e6ea69)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC process.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

--- 88 unchanged lines hidden (view full) ---

97 * Send the doze signal to the cpu if available.
98 * Make sure, that all interrupts are enabled
99 */
100void arch_cpu_idle(void)
101{
102 raw_local_irq_enable();
103 if (mfspr(SPR_UPR) & SPR_UPR_PMP)
104 mtspr(SPR_PMR, mfspr(SPR_PMR) | SPR_PMR_DME);
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC process.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

--- 88 unchanged lines hidden (view full) ---

97 * Send the doze signal to the cpu if available.
98 * Make sure, that all interrupts are enabled
99 */
100void arch_cpu_idle(void)
101{
102 raw_local_irq_enable();
103 if (mfspr(SPR_UPR) & SPR_UPR_PMP)
104 mtspr(SPR_PMR, mfspr(SPR_PMR) | SPR_PMR_DME);
105 raw_local_irq_disable();
105}
106
107void (*pm_power_off)(void) = NULL;
108EXPORT_SYMBOL(pm_power_off);
109
110/*
111 * When a process does an "exec", machine state like FPU and debug
112 * registers need to be reset. This is a hook function for that.

--- 172 unchanged lines hidden ---
106}
107
108void (*pm_power_off)(void) = NULL;
109EXPORT_SYMBOL(pm_power_off);
110
111/*
112 * When a process does an "exec", machine state like FPU and debug
113 * registers need to be reset. This is a hook function for that.

--- 172 unchanged lines hidden ---