Searched refs:irqctx (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/arch/sh/kernel/
H A Dirq.c72 union irq_ctx *curctx, *irqctx; handle_one_irq() local
75 irqctx = hardirq_ctx[smp_processor_id()]; handle_one_irq()
83 if (curctx != irqctx) { handle_one_irq()
86 isp = (u32 *)((char *)irqctx + sizeof(*irqctx)); handle_one_irq()
87 irqctx->tinfo.task = curctx->tinfo.task; handle_one_irq()
88 irqctx->tinfo.previous_sp = current_stack_pointer; handle_one_irq()
94 irqctx->tinfo.preempt_count = handle_one_irq()
95 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | handle_one_irq()
120 union irq_ctx *irqctx; irq_ctx_init() local
125 irqctx = (union irq_ctx *)&hardirq_stack[cpu * THREAD_SIZE]; irq_ctx_init()
126 irqctx->tinfo.task = NULL; irq_ctx_init()
127 irqctx->tinfo.cpu = cpu; irq_ctx_init()
128 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; irq_ctx_init()
129 irqctx->tinfo.addr_limit = MAKE_MM_SEG(0); irq_ctx_init()
131 hardirq_ctx[cpu] = irqctx; irq_ctx_init()
133 irqctx = (union irq_ctx *)&softirq_stack[cpu * THREAD_SIZE]; irq_ctx_init()
134 irqctx->tinfo.task = NULL; irq_ctx_init()
135 irqctx->tinfo.cpu = cpu; irq_ctx_init()
136 irqctx->tinfo.preempt_count = 0; irq_ctx_init()
137 irqctx->tinfo.addr_limit = MAKE_MM_SEG(0); irq_ctx_init()
139 softirq_ctx[cpu] = irqctx; irq_ctx_init()
153 union irq_ctx *irqctx; do_softirq_own_stack() local
157 irqctx = softirq_ctx[smp_processor_id()]; do_softirq_own_stack()
158 irqctx->tinfo.task = curctx->task; do_softirq_own_stack()
159 irqctx->tinfo.previous_sp = current_stack_pointer; do_softirq_own_stack()
162 isp = (u32 *)((char *)irqctx + sizeof(*irqctx)); do_softirq_own_stack()
/linux-4.1.27/arch/metag/kernel/
H A Dirq.c46 union irq_ctx *curctx, *irqctx; do_IRQ() local
70 irqctx = hardirq_ctx[smp_processor_id()]; do_IRQ()
78 if (curctx != irqctx) { do_IRQ()
80 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); do_IRQ()
81 irqctx->tinfo.task = curctx->tinfo.task; do_IRQ()
87 irqctx->tinfo.preempt_count = do_IRQ()
88 (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) | do_IRQ()
128 union irq_ctx *irqctx; irq_ctx_init() local
133 irqctx = (union irq_ctx *) &hardirq_stack[cpu * THREAD_SIZE]; irq_ctx_init()
134 irqctx->tinfo.task = NULL; irq_ctx_init()
135 irqctx->tinfo.cpu = cpu; irq_ctx_init()
136 irqctx->tinfo.preempt_count = HARDIRQ_OFFSET; irq_ctx_init()
137 irqctx->tinfo.addr_limit = MAKE_MM_SEG(0); irq_ctx_init()
139 hardirq_ctx[cpu] = irqctx; irq_ctx_init()
141 irqctx = (union irq_ctx *) &softirq_stack[cpu * THREAD_SIZE]; irq_ctx_init()
142 irqctx->tinfo.task = NULL; irq_ctx_init()
143 irqctx->tinfo.cpu = cpu; irq_ctx_init()
144 irqctx->tinfo.preempt_count = 0; irq_ctx_init()
145 irqctx->tinfo.addr_limit = MAKE_MM_SEG(0); irq_ctx_init()
147 softirq_ctx[cpu] = irqctx; irq_ctx_init()
163 union irq_ctx *irqctx; do_softirq_own_stack() local
167 irqctx = softirq_ctx[smp_processor_id()]; do_softirq_own_stack()
168 irqctx->tinfo.task = curctx->task; do_softirq_own_stack()
171 isp = (u32 *) ((char *)irqctx + sizeof(struct thread_info)); do_softirq_own_stack()

Completed in 70 milliseconds