forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/ia64/include/asm/acpi.h
....@@ -1,26 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 1999 VA Linux Systems
34 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
45 * Copyright (C) 2000,2001 J.I. Lee <jung-ik.lee@intel.com>
56 * Copyright (C) 2001,2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
6
- *
7
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
- *
23
- * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247 */
258
269 #ifndef _ASM_ACPI_H
....@@ -34,7 +17,7 @@
3417 #include <linux/numa.h>
3518 #include <asm/numa.h>
3619
37
-#ifdef CONFIG_ACPI
20
+
3821 extern int acpi_lapic;
3922 #define acpi_disabled 0 /* ACPI always enabled on IA64 */
4023 #define acpi_noirq 0 /* ACPI always enabled on IA64 */
....@@ -45,41 +28,20 @@
4528 {
4629 return !!acpi_lapic;
4730 }
48
-#endif
31
+
4932 #define acpi_processor_cstate_check(x) (x) /* no idle limits on IA64 :) */
5033 static inline void disable_acpi(void) { }
5134
52
-#ifdef CONFIG_IA64_GENERIC
53
-const char *acpi_get_sysname (void);
54
-#else
55
-static inline const char *acpi_get_sysname (void)
56
-{
57
-# if defined (CONFIG_IA64_HP_SIM)
58
- return "hpsim";
59
-# elif defined (CONFIG_IA64_HP_ZX1)
60
- return "hpzx1";
61
-# elif defined (CONFIG_IA64_HP_ZX1_SWIOTLB)
62
- return "hpzx1_swiotlb";
63
-# elif defined (CONFIG_IA64_SGI_SN2)
64
- return "sn2";
65
-# elif defined (CONFIG_IA64_SGI_UV)
66
- return "uv";
67
-# elif defined (CONFIG_IA64_DIG)
68
- return "dig";
69
-# elif defined(CONFIG_IA64_DIG_VTD)
70
- return "dig_vtd";
71
-# else
72
-# error Unknown platform. Fix acpi.c.
73
-# endif
74
-}
75
-#endif
7635 int acpi_request_vector (u32 int_type);
7736 int acpi_gsi_to_irq (u32 gsi, unsigned int *irq);
7837
7938 /* Low-level suspend routine. */
8039 extern int acpi_suspend_lowlevel(void);
8140
82
-extern unsigned long acpi_wakeup_address;
41
+static inline unsigned long acpi_get_wakeup_address(void)
42
+{
43
+ return 0;
44
+}
8345
8446 /*
8547 * Record the cpei override flag and current logical cpu. This is
....@@ -111,8 +73,6 @@
11173 {
11274 buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP;
11375 }
114
-
115
-#define acpi_unlazy_tlb(x)
11676
11777 #ifdef CONFIG_ACPI_NUMA
11878 extern cpumask_t early_cpu_possible_map;