Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/acpi PR kern/55080: current does not boot
details: https://anonhg.NetBSD.org/src/rev/9f19941423b2
branches: trunk
changeset: 1008332:9f19941423b2
user: ad <ad%NetBSD.org@localhost>
date: Thu Mar 19 19:55:34 2020 +0000
description:
PR kern/55080: current does not boot
Back out previous. To be addressed differently.
diffstat:
sys/arch/x86/acpi/acpi_cpu_md.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diffs (71 lines):
diff -r d5ad69eed4ce -r 9f19941423b2 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c Thu Mar 19 18:58:14 2020 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c Thu Mar 19 19:55:34 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.82 2020/03/14 13:50:46 ad Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.83 2020/03/19 19:55:34 ad Exp $ */
/*-
* Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.82 2020/03/14 13:50:46 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.83 2020/03/19 19:55:34 ad Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -103,10 +103,8 @@
#define FID_TO_VCO_FID(fidd) (((fid) < 8) ? (8 + ((fid) << 1)) : (fid))
-#ifdef ACPICPU_ENABLE_C3
static char native_idle_text[16];
void (*native_idle)(void) = NULL;
-#endif
static int acpicpu_md_quirk_piix4(const struct pci_attach_args *);
static void acpicpu_md_pstate_hwf_reset(void *, void *);
@@ -350,12 +348,6 @@
int
acpicpu_md_cstate_start(struct acpicpu_softc *sc)
{
-#ifdef ACPICPU_ENABLE_C3
- /*
- * XXX There are performance problems with the ACPI idle loop, and
- * it does not enter deep sleep. Once those are resolved it'll be
- * re-enabled.
- */
const size_t size = sizeof(native_idle_text);
struct acpicpu_cstate *cs;
bool ipi = false;
@@ -377,7 +369,6 @@
}
x86_cpu_idle_set(acpicpu_cstate_idle, "acpi", ipi);
-#endif /* ACPICPU_ENABLE_C3 */
return 0;
}
@@ -385,12 +376,6 @@
int
acpicpu_md_cstate_stop(void)
{
-#ifdef ACPICPU_ENABLE_C3
- /*
- * XXX There are performance problems with the ACPI idle loop, and
- * it does not enter deep sleep. Once those are resolved it'll be
- * re-enabled.
- */
static char text[16];
void (*func)(void);
bool ipi;
@@ -408,7 +393,6 @@
* out from the ACPI idle-loop before detachment.
*/
xc_barrier(0);
-#endif /* ACPICPU_ENABLE_C3 */
return 0;
}
Home |
Main Index |
Thread Index |
Old Index