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

This commit is contained in:
msaitoh 2014-11-20 12:49:13 +00:00
parent 215bab86a5
commit ce7f2410b4
2 changed files with 15 additions and 6 deletions

View File

@ -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. .\" Copyright (c) 2007, 2008, 2012 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -67,8 +67,17 @@ away from individual CPUs.
At least one CPU in the system must remain on line. At least one CPU in the system must remain on line.
.It online Ar cpuno .It online Ar cpuno
Set the specified CPU on line, making it available to run unbound LWPs. Set the specified CPU on line, making it available to run unbound LWPs.
.It ucode Op Ar file .It ucode Xo
This applies the microcode patch on all CPUs. .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 default filename is used if no filename is specified.
The The
.Cm identify .Cm identify

View File

@ -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. * Copyright (c) 2007, 2008, 2009, 2012 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#ifndef lint #ifndef lint
#include <sys/cdefs.h> #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 */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>
@ -137,7 +137,7 @@ usage(void)
fprintf(stderr, " %s online cpuno\n", progname); fprintf(stderr, " %s online cpuno\n", progname);
fprintf(stderr, " %s intr cpuno\n", progname); fprintf(stderr, " %s intr cpuno\n", progname);
fprintf(stderr, " %s nointr 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); exit(EXIT_FAILURE);
/* NOTREACHED */ /* NOTREACHED */
} }