Re: [Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-08-11 Thread Jan Beulich
>>> On 27.07.15 at 07:48, wrote: >> > +/* >> > + * clamp_t - return a value clamped to a given range using a given >> > +type >> > + * @type: the type of variable to use >> > + * @val: current value >> > + * @lo: minimum allowable value >> > + * @hi: maximum allowable value >> > + * >> > + * This

Re: [Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-07-26 Thread Wang, Wei W
> > +/* > > + * clamp_t - return a value clamped to a given range using a given > > +type > > + * @type: the type of variable to use > > + * @val: current value > > + * @lo: minimum allowable value > > + * @hi: maximum allowable value > > + * > > + * This macro does no typechecking and uses tempora

Re: [Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-07-24 Thread Jan Beulich
>>> On 25.06.15 at 13:14, wrote: > The added calculation related functions will be used in the intel_pstate.c. > They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). > > v4 changes: > 1) in commit message, "kernel" changed to "Linux kernel" > 2) if-else coding style change.

Re: [Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-07-24 Thread Jan Beulich
>>> On 25.06.15 at 13:14, wrote: > The added calculation related functions will be used in the intel_pstate.c. > They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). > > v4 changes: > 1) in commit message, "kernel" changed to "Linux kernel" > 2) if-else coding style change.

[Xen-devel] [PATCH v4 02/11] x86/intel_pstate: add some calculation related support

2015-06-25 Thread Wei Wang
The added calculation related functions will be used in the intel_pstate.c. They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7). v4 changes: 1) in commit message, "kernel" changed to "Linux kernel" 2) if-else coding style change. Signed-off-by: Wei Wang --- xen/include/as