Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86 ipifunc[]: Comment IPI constant names for grep'...
details: https://anonhg.NetBSD.org/src/rev/c3972aa4b448
branches: trunk
changeset: 330767:c3972aa4b448
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sun Jul 20 15:46:34 2014 +0000
description:
ipifunc[]: Comment IPI constant names for grep'ability. Constify.
diffstat:
sys/arch/x86/include/intr.h | 4 ++--
sys/arch/x86/x86/ipi.c | 24 ++++++++++++------------
2 files changed, 14 insertions(+), 14 deletions(-)
diffs (64 lines):
diff -r ea25dd42cd74 -r c3972aa4b448 sys/arch/x86/include/intr.h
--- a/sys/arch/x86/include/intr.h Sun Jul 20 14:52:29 2014 +0000
+++ b/sys/arch/x86/include/intr.h Sun Jul 20 15:46:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.h,v 1.44 2014/03/29 19:28:30 christos Exp $ */
+/* $NetBSD: intr.h,v 1.45 2014/07/20 15:46:34 uebayasi Exp $ */
/*-
* Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -186,7 +186,7 @@
void x86_broadcast_ipi(int);
void x86_ipi_handler(void);
-extern void (*ipifunc[X86_NIPI])(struct cpu_info *);
+extern void (* const ipifunc[X86_NIPI])(struct cpu_info *);
#endif /* _KERNEL */
diff -r ea25dd42cd74 -r c3972aa4b448 sys/arch/x86/x86/ipi.c
--- a/sys/arch/x86/x86/ipi.c Sun Jul 20 14:52:29 2014 +0000
+++ b/sys/arch/x86/x86/ipi.c Sun Jul 20 15:46:34 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipi.c,v 1.24 2014/05/19 22:47:54 rmind Exp $ */
+/* $NetBSD: ipi.c,v 1.25 2014/07/20 15:46:34 uebayasi Exp $ */
/*-
* Copyright (c) 2000, 2008, 2009 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipi.c,v 1.24 2014/05/19 22:47:54 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipi.c,v 1.25 2014/07/20 15:46:34 uebayasi Exp $");
#include "opt_mtrr.h"
@@ -78,17 +78,17 @@
static void x86_ipi_synch_fpu(struct cpu_info *);
-void (*ipifunc[X86_NIPI])(struct cpu_info *) =
+void (* const ipifunc[X86_NIPI])(struct cpu_info *) =
{
- x86_ipi_halt,
- NULL,
- x86_ipi_generic,
- x86_ipi_synch_fpu,
- x86_ipi_reload_mtrr,
- gdt_reload_cpu,
- x86_ipi_xcall,
- acpi_cpu_sleep,
- x86_ipi_kpreempt
+ x86_ipi_halt, /* X86_IPI_HALT */
+ NULL, /* X86_IPI_MICROSET */
+ x86_ipi_generic, /* X86_IPI_GENERIC */
+ x86_ipi_synch_fpu, /* X86_IPI_SYNCH_FPU */
+ x86_ipi_reload_mtrr, /* X86_IPI_MTRR */
+ gdt_reload_cpu, /* X86_IPI_GDT */
+ x86_ipi_xcall, /* X86_IPI_XCALL */
+ acpi_cpu_sleep, /* X86_IPI_ACPI_CPU_SLEEP */
+ x86_ipi_kpreempt /* X86_IPI_KPREEMPT */
};
/*
Home |
Main Index |
Thread Index |
Old Index