forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap2/omap-wakeupgen.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * OMAP WakeupGen Source file
34 *
....@@ -10,10 +11,6 @@
1011 *
1112 * Copyright (C) 2011 Texas Instruments, Inc.
1213 * Santosh Shilimkar <santosh.shilimkar@ti.com>
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
1714 */
1815
1916 #include <linux/kernel.h>
....@@ -436,13 +433,13 @@
436433 {
437434 switch (cmd) {
438435 case CPU_CLUSTER_PM_ENTER:
439
- if (omap_type() == OMAP2_DEVICE_TYPE_GP)
436
+ if (omap_type() == OMAP2_DEVICE_TYPE_GP || soc_is_am43xx())
440437 irq_save_context();
441438 else
442439 irq_save_secure_context();
443440 break;
444441 case CPU_CLUSTER_PM_EXIT:
445
- if (omap_type() == OMAP2_DEVICE_TYPE_GP)
442
+ if (omap_type() == OMAP2_DEVICE_TYPE_GP || soc_is_am43xx())
446443 irq_restore_context();
447444 break;
448445 }