Re: [RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-30 Thread Frederic Weisbecker
On Wed, Aug 21, 2013 at 02:26:46PM -0400, Don Zickus wrote: > On Wed, Aug 21, 2013 at 06:42:17PM +0200, Frederic Weisbecker wrote: > > hw_nmi_get_sample_period() is simply a conversion from a period > > to cycles. Lets generalize the API naming so that it can be used for > > wider purpose than

Re: [RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-30 Thread Frederic Weisbecker
On Wed, Aug 21, 2013 at 02:26:46PM -0400, Don Zickus wrote: On Wed, Aug 21, 2013 at 06:42:17PM +0200, Frederic Weisbecker wrote: hw_nmi_get_sample_period() is simply a conversion from a period to cycles. Lets generalize the API naming so that it can be used for wider purpose than just

Re: [RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-21 Thread Don Zickus
On Wed, Aug 21, 2013 at 06:42:17PM +0200, Frederic Weisbecker wrote: > hw_nmi_get_sample_period() is simply a conversion from a period > to cycles. Lets generalize the API naming so that it can be used for > wider purpose than just watchdog perf event settings. Also it makes the > function name

[RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-21 Thread Frederic Weisbecker
hw_nmi_get_sample_period() is simply a conversion from a period to cycles. Lets generalize the API naming so that it can be used for wider purpose than just watchdog perf event settings. Also it makes the function name less opaque about what it really does. Signed-off-by: Frederic Weisbecker Cc:

[RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-21 Thread Frederic Weisbecker
hw_nmi_get_sample_period() is simply a conversion from a period to cycles. Lets generalize the API naming so that it can be used for wider purpose than just watchdog perf event settings. Also it makes the function name less opaque about what it really does. Signed-off-by: Frederic Weisbecker

Re: [RFC PATCH 2/6] x86: nsecs to cycles conversion

2013-08-21 Thread Don Zickus
On Wed, Aug 21, 2013 at 06:42:17PM +0200, Frederic Weisbecker wrote: hw_nmi_get_sample_period() is simply a conversion from a period to cycles. Lets generalize the API naming so that it can be used for wider purpose than just watchdog perf event settings. Also it makes the function name less