From: Karel Zak <kzak@redhat.com>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: util-linux@vger.kernel.org
Subject: Re: [PATCH/RFC 2/2] chcpu: new tool
Date: Wed, 31 Aug 2011 11:47:45 +0200 [thread overview]
Message-ID: <20110831094745.GF23423@nb.net.home> (raw)
In-Reply-To: <20110831094433.GE23423@nb.net.home>
On Wed, Aug 31, 2011 at 11:44:33AM +0200, Karel Zak wrote:
> On Mon, Aug 15, 2011 at 05:24:55PM +0200, Heiko Carstens wrote:
> > + if ((argc == 1) || (argc != optind))
> > + usage(stderr);
> > +
> > + switch (cmd) {
> > + case CMD_CPU_ENABLE:
> > + return cpu_enable(cpu_set, ncpus, 1);
> > + case CMD_CPU_DISABLE:
> > + return cpu_enable(cpu_set, ncpus, 0);
> > + }
>
> What about to add CMD_CPU_SHOW and use it as a default if --enable/disable
> is not specified?
Ah... I see your updated version now. Sorry. Ignore my note about
CMD_CPU_SHOW :-) It will be better to use lscpu.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
next prev parent reply other threads:[~2011-08-31 9:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-15 15:24 [PATCH/RFC 0/2] new chcpu tool Heiko Carstens
2011-08-15 15:24 ` [PATCH/RFC 1/2] cpuset: add option to allow cpulist_parse() to fail Heiko Carstens
2011-08-15 15:24 ` [PATCH/RFC 2/2] chcpu: new tool Heiko Carstens
2011-08-31 9:44 ` Karel Zak
2011-08-31 9:47 ` Karel Zak [this message]
2011-08-22 12:06 ` [PATCH] new chcpu tool Heiko Carstens
2011-08-22 13:28 ` Karel Zak
2011-08-23 8:45 ` Heiko Carstens
2011-08-31 9:56 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110831094745.GF23423@nb.net.home \
--to=kzak@redhat.com \
--cc=heiko.carstens@de.ibm.com \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).