.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * SMP support for BPA machines. |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Mike Corrigan {engebret|bergner|mikec}@us.ibm.com |
---|
6 | 7 | * |
---|
7 | 8 | * Plus various changes from other IBM teams... |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or |
---|
10 | | - * modify it under the terms of the GNU General Public License |
---|
11 | | - * as published by the Free Software Foundation; either version |
---|
12 | | - * 2 of the License, or (at your option) any later version. |
---|
13 | 9 | */ |
---|
14 | 10 | |
---|
15 | 11 | #undef DEBUG |
---|
.. | .. |
---|
25 | 21 | #include <linux/err.h> |
---|
26 | 22 | #include <linux/device.h> |
---|
27 | 23 | #include <linux/cpu.h> |
---|
| 24 | +#include <linux/pgtable.h> |
---|
28 | 25 | |
---|
29 | 26 | #include <asm/ptrace.h> |
---|
30 | 27 | #include <linux/atomic.h> |
---|
31 | 28 | #include <asm/irq.h> |
---|
32 | 29 | #include <asm/page.h> |
---|
33 | | -#include <asm/pgtable.h> |
---|
34 | 30 | #include <asm/io.h> |
---|
35 | 31 | #include <asm/prom.h> |
---|
36 | 32 | #include <asm/smp.h> |
---|
.. | .. |
---|
81 | 77 | return 1; |
---|
82 | 78 | |
---|
83 | 79 | pcpu = get_hard_smp_processor_id(lcpu); |
---|
84 | | - |
---|
85 | | - /* Fixup atomic count: it exited inside IRQ handler. */ |
---|
86 | | - task_thread_info(paca_ptrs[lcpu]->__current)->preempt_count = 0; |
---|
87 | 80 | |
---|
88 | 81 | /* |
---|
89 | 82 | * If the RTAS start-cpu token does not exist then presume the |
---|