process.c (4f2c0a4acffbec01079c28f839422e64ddeff004) process.c (89b3098703bd2aa3237ef10a704e6a5838e6ea69)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 *
5 * Amit Bhor, Kanika Nema: Codito Technologies 2004
6 */
7
8#include <linux/errno.h>

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

109{
110 /* Re-enable interrupts <= default irq priority before committing SLEEP */
111 const unsigned int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
112
113 __asm__ __volatile__(
114 "sleep %0 \n"
115 :
116 :"I"(arg)); /* can't be "r" has to be embedded const */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 *
5 * Amit Bhor, Kanika Nema: Codito Technologies 2004
6 */
7
8#include <linux/errno.h>

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

109{
110 /* Re-enable interrupts <= default irq priority before committing SLEEP */
111 const unsigned int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
112
113 __asm__ __volatile__(
114 "sleep %0 \n"
115 :
116 :"I"(arg)); /* can't be "r" has to be embedded const */
117
118 raw_local_irq_disable();
117}
118
119#else /* ARC700 */
120
121void arch_cpu_idle(void)
122{
123 /* sleep, but enable both set E1/E2 (levels of interrupts) before committing */
124 __asm__ __volatile__("sleep 0x3 \n");
119}
120
121#else /* ARC700 */
122
123void arch_cpu_idle(void)
124{
125 /* sleep, but enable both set E1/E2 (levels of interrupts) before committing */
126 __asm__ __volatile__("sleep 0x3 \n");
127 raw_local_irq_disable();
125}
126
127#endif
128
129asmlinkage void ret_from_fork(void);
130
131/*
132 * Copy architecture-specific thread state

--- 172 unchanged lines hidden ---
128}
129
130#endif
131
132asmlinkage void ret_from_fork(void);
133
134/*
135 * Copy architecture-specific thread state

--- 172 unchanged lines hidden ---