Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/cpuctl Fix manual and usage bug. The ucode command ...
details: https://anonhg.NetBSD.org/src/rev/91e6afc032ad
branches: trunk
changeset: 333873:91e6afc032ad
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Nov 20 12:49:13 2014 +0000
description:
Fix manual and usage bug. The ucode command can take [cpuno] argument.
diffstat:
usr.sbin/cpuctl/cpuctl.8 | 15 ++++++++++++---
usr.sbin/cpuctl/cpuctl.c | 6 +++---
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 82cfbc371f6e -r 91e6afc032ad usr.sbin/cpuctl/cpuctl.8
--- a/usr.sbin/cpuctl/cpuctl.8 Thu Nov 20 11:36:13 2014 +0000
+++ b/usr.sbin/cpuctl/cpuctl.8 Thu Nov 20 12:49:13 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: cpuctl.8,v 1.12 2014/02/19 09:13:21 szptvlfn Exp $
+.\" $NetBSD: cpuctl.8,v 1.13 2014/11/20 12:49:13 msaitoh Exp $
.\"
.\" Copyright (c) 2007, 2008, 2012 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -67,8 +67,17 @@
At least one CPU in the system must remain on line.
.It online Ar cpuno
Set the specified CPU on line, making it available to run unbound LWPs.
-.It ucode Op Ar file
-This applies the microcode patch on all CPUs.
+.It ucode Xo
+.Op Ar cpuno
+.Op Ar file
+.Xc
+This applies the microcode patch to CPUs.
+If
+.Ar cpuno
+is not specified or -1, all CPUs are updated.
+If
+.Ar cpuno
+is -2, the current CPUs are updated.
The default filename is used if no filename is specified.
The
.Cm identify
diff -r 82cfbc371f6e -r 91e6afc032ad usr.sbin/cpuctl/cpuctl.c
--- a/usr.sbin/cpuctl/cpuctl.c Thu Nov 20 11:36:13 2014 +0000
+++ b/usr.sbin/cpuctl/cpuctl.c Thu Nov 20 12:49:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuctl.c,v 1.23 2013/12/23 12:35:33 msaitoh Exp $ */
+/* $NetBSD: cpuctl.c,v 1.24 2014/11/20 12:49:13 msaitoh Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#ifndef lint
#include <sys/cdefs.h>
-__RCSID("$NetBSD: cpuctl.c,v 1.23 2013/12/23 12:35:33 msaitoh Exp $");
+__RCSID("$NetBSD: cpuctl.c,v 1.24 2014/11/20 12:49:13 msaitoh Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -137,7 +137,7 @@
fprintf(stderr, " %s online cpuno\n", progname);
fprintf(stderr, " %s intr cpuno\n", progname);
fprintf(stderr, " %s nointr cpuno\n", progname);
- fprintf(stderr, " %s ucode [file]\n", progname);
+ fprintf(stderr, " %s ucode [cpuno] [file]\n", progname);
exit(EXIT_FAILURE);
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index