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

2017-10-10 Thread Jan Beulich
>>> On 08.10.17 at 09:23, 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 'feat_mask' in 'psr_cpu_init' to redu

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

2017-10-08 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 'feat_mask' in 'psr_cpu_init' to reduce calling of 'cpuid_count_leaf()'. Sign