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@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html