forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap2/omap-mpuss-lowpower.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * OMAP MPUSS low power code
34 *
....@@ -30,11 +31,6 @@
3031 *
3132 * Note: CPU0 is the master core and it is the last CPU to go down
3233 * and first to wake-up when MPUSS low power states are excercised
33
- *
34
- *
35
- * This program is free software; you can redistribute it and/or modify
36
- * it under the terms of the GNU General Public License version 2 as
37
- * published by the Free Software Foundation.
3834 */
3935
4036 #include <linux/kernel.h>
....@@ -46,7 +42,6 @@
4642 #include <asm/cacheflush.h>
4743 #include <asm/tlbflush.h>
4844 #include <asm/smp_scu.h>
49
-#include <asm/pgalloc.h>
5045 #include <asm/suspend.h>
5146 #include <asm/virt.h>
5247 #include <asm/hardware/cache-l2x0.h>
....@@ -231,7 +226,6 @@
231226 {
232227 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu);
233228 unsigned int save_state = 0, cpu_logic_state = PWRDM_POWER_RET;
234
- unsigned int wakeup_cpu;
235229
236230 if (omap_rev() == OMAP4430_REV_ES1_0)
237231 return -ENXIO;
....@@ -296,7 +290,6 @@
296290 * secure devices, CPUx does WFI which can result in
297291 * domain transition
298292 */
299
- wakeup_cpu = smp_processor_id();
300293 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON);
301294
302295 pwrdm_post_transition(NULL);