Module Name:    src
Committed By:   msaitoh
Date:           Thu Nov 20 12:49:13 UTC 2014

Modified Files:
        src/usr.sbin/cpuctl: cpuctl.8 cpuctl.c

Log Message:
 Fix manual and usage bug. The ucode command can take [cpuno] argument.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/cpuctl/cpuctl.8
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/cpuctl/cpuctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/cpuctl/cpuctl.8
diff -u src/usr.sbin/cpuctl/cpuctl.8:1.12 src/usr.sbin/cpuctl/cpuctl.8:1.13
--- src/usr.sbin/cpuctl/cpuctl.8:1.12	Wed Feb 19 09:13:21 2014
+++ src/usr.sbin/cpuctl/cpuctl.8	Thu Nov 20 12:49:13 2014
@@ -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 @@ away from individual CPUs.
 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

Index: src/usr.sbin/cpuctl/cpuctl.c
diff -u src/usr.sbin/cpuctl/cpuctl.c:1.23 src/usr.sbin/cpuctl/cpuctl.c:1.24
--- src/usr.sbin/cpuctl/cpuctl.c:1.23	Mon Dec 23 12:35:33 2013
+++ src/usr.sbin/cpuctl/cpuctl.c	Thu Nov 20 12:49:13 2014
@@ -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 @@ usage(void)
 	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 */
 }

Reply via email to