|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] tools:misc:xenpm: set max freq to all cpu with default cpuid
Hi Wei, On 12/04/17 15:54, Wei Liu wrote: On Wed, Apr 12, 2017 at 09:19:34AM +0800, Luwei Kang wrote:User can set max freq to specific cpu by "xenpm set-scaling-maxfreq <cpuid> <max freq>" or set max freq to all cpu with default cpuid by "xenpm set-scaling-maxfreq <max freq>". Set max freq with defaule cpuid will causedefaultsegmentation fault after commit id d4906b5d05. This patch will fix this issue and add ability to set max freq with default cpuid. Signed-off-by: Luwei Kang <luwei.kang@xxxxxxxxx>I think this patch basically restores the code to the correct logic before it was broken by d4906b5d05, so: Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> If I am not mistaken, this patch will re-introduce an error with clang build. From the commit message the sscanf was problematic: xenpm.c:102:23: error: data argument not used by format string [-Werror,-Wformat-extra-args]
what, argv[argc > 1]);
^
So we would break clang build but get a segfault fixed :). I have CCed
Roger to confirm.
Cheers, CC Julien -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |