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 Add the __nocsan attribute on this functio...



details:   https://anonhg.NetBSD.org/src/rev/3b7c2b1b4a95
branches:  trunk
changeset: 1004621:3b7c2b1b4a95
user:      maxv <maxv%NetBSD.org@localhost>
date:      Tue Nov 05 20:21:34 2019 +0000

description:
Add the __nocsan attribute on this function. Races on ci_want_resched are
accepted (part of the design).

diffstat:

 sys/arch/x86/acpi/acpi_cpu_md.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 640544d94730 -r 3b7c2b1b4a95 sys/arch/x86/acpi/acpi_cpu_md.c
--- a/sys/arch/x86/acpi/acpi_cpu_md.c   Tue Nov 05 20:19:17 2019 +0000
+++ b/sys/arch/x86/acpi/acpi_cpu_md.c   Tue Nov 05 20:21:34 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu_md.c,v 1.80 2019/10/06 15:11:17 uwe Exp $ */
+/* $NetBSD: acpi_cpu_md.c,v 1.81 2019/11/05 20:21:34 maxv 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.80 2019/10/06 15:11:17 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu_md.c,v 1.81 2019/11/05 20:21:34 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -400,7 +400,7 @@
 /*
  * Called with interrupts enabled.
  */
-void
+void __nocsan
 acpicpu_md_cstate_enter(int method, int state)
 {
        struct cpu_info *ci = curcpu();



Home | Main Index | Thread Index | Old Index