Re: [PATCH/RFC 2/2] chcpu: new tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux