forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/mm/mmio-mod.c
....@@ -1,17 +1,5 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License as published by
4
- * the Free Software Foundation; either version 2 of the License, or
5
- * (at your option) any later version.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
11
- *
12
- * You should have received a copy of the GNU General Public License
13
- * along with this program; if not, write to the Free Software
14
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
153 *
164 * Copyright (C) IBM Corporation, 2005
175 * Jeff Muizelaar, 2006, 2007
....@@ -29,8 +17,8 @@
2917 #include <linux/slab.h>
3018 #include <linux/uaccess.h>
3119 #include <linux/io.h>
32
-#include <asm/pgtable.h>
3320 #include <linux/mmiotrace.h>
21
+#include <linux/pgtable.h>
3422 #include <asm/e820/api.h> /* for ISA_START_ADDRESS */
3523 #include <linux/atomic.h>
3624 #include <linux/percpu.h>
....@@ -398,7 +386,7 @@
398386 put_online_cpus();
399387
400388 for_each_cpu(cpu, downed_cpus) {
401
- err = cpu_down(cpu);
389
+ err = remove_cpu(cpu);
402390 if (!err)
403391 pr_info("CPU%d is down.\n", cpu);
404392 else
....@@ -406,7 +394,7 @@
406394 }
407395 out:
408396 if (num_online_cpus() > 1)
409
- pr_warning("multiple CPUs still online, may miss events.\n");
397
+ pr_warn("multiple CPUs still online, may miss events.\n");
410398 }
411399
412400 static void leave_uniprocessor(void)
....@@ -418,7 +406,7 @@
418406 return;
419407 pr_notice("Re-enabling CPUs...\n");
420408 for_each_cpu(cpu, downed_cpus) {
421
- err = cpu_up(cpu);
409
+ err = add_cpu(cpu);
422410 if (!err)
423411 pr_info("enabled CPU%d.\n", cpu);
424412 else
....@@ -430,8 +418,8 @@
430418 static void enter_uniprocessor(void)
431419 {
432420 if (num_online_cpus() > 1)
433
- pr_warning("multiple CPUs are online, may miss events. "
434
- "Suggest booting with maxcpus=1 kernel argument.\n");
421
+ pr_warn("multiple CPUs are online, may miss events. "
422
+ "Suggest booting with maxcpus=1 kernel argument.\n");
435423 }
436424
437425 static void leave_uniprocessor(void)