Fix manual and usage bug. The ucode command can take [cpuno] argument.
This commit is contained in:
parent
215bab86a5
commit
ce7f2410b4
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue