Re: [Xen-devel] [PATCH v5 04/16] x86: a few optimizations to psr codes

2017-10-06 Thread Roger Pau Monné
On Sat, Sep 30, 2017 at 01:39:14AM +, Yi Sun wrote: > This patch refines psr codes: > 1. Change type of 'cat_init_feature' to 'bool' to remove the pointless >returning of error code. > 2. Move printk in 'cat_init_feature' to reduce a return path. > 3. Define a local variable 'ebx' in 'psr_c

[Xen-devel] [PATCH v5 04/16] x86: a few optimizations to psr codes

2017-09-29 Thread Yi Sun
This patch refines psr codes: 1. Change type of 'cat_init_feature' to 'bool' to remove the pointless returning of error code. 2. Move printk in 'cat_init_feature' to reduce a return path. 3. Define a local variable 'ebx' in 'psr_cpu_init' to reduce calling of 'cpuid_count_leaf()'. 4. Change t