diff --git a/usr.sbin/cpuctl/cpuctl.8 b/usr.sbin/cpuctl/cpuctl.8 index 281bafe7fd2f..8f31c485b175 100644 --- a/usr.sbin/cpuctl/cpuctl.8 +++ b/usr.sbin/cpuctl/cpuctl.8 @@ -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 diff --git a/usr.sbin/cpuctl/cpuctl.c b/usr.sbin/cpuctl/cpuctl.c index 8b399f63265d..540b385832d6 100644 --- a/usr.sbin/cpuctl/cpuctl.c +++ b/usr.sbin/cpuctl/cpuctl.c @@ -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 -__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 @@ -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 */ }