Re: A clocksource driver for HyperV

2010-04-07 Thread Ky Srinivasan
On 4/5/2010 at 5:36 PM, in message 4bba57fb.2000...@goop.org , Jeremy Fitzhardinge jer...@goop.org wrote: On 04/05/2010 01:30 PM, Ky Srinivasan wrote: +static cycle_t read_hv_clock(struct clocksource *arg) +{ +cycle_t current_tick; +/* + * Read the partition counter

Re: A clocksource driver for HyperV

2010-04-07 Thread Ky Srinivasan
On 4/5/2010 at 5:36 PM, in message 4bba57fb.2000...@goop.org , Jeremy Fitzhardinge jer...@goop.org wrote: On 04/05/2010 01:30 PM, Ky Srinivasan wrote: +static cycle_t read_hv_clock(struct clocksource *arg) +{ +cycle_t current_tick; +/* + * Read the partition counter

Re: A clocksource driver for HyperV

2010-04-07 Thread Jeremy Fitzhardinge
On 04/07/2010 11:20 AM, Ky Srinivasan wrote: Jeremy, thank you for your comments. I am attaching the next version of this patch that addresses the comments I have gotten thus far. It looks like you overlooked a couple of comments. +} + +static struct clocksource hyperv_cs = { +

A clocksource driver for HyperV

2010-04-05 Thread Ky Srinivasan
I am attaching a clocksource driver for HyperV. Signed-off-by: K. Y. Srinivasan ksriniva...@novell.com From: K. Y. Srinivasan ksriniva...@novell.com Subject: A clocksource for Linux guests hosted on HyperV. References: None Patch-mainline: This patch is a clocksource implementation suitable

A clocksource driver for HyperV

2010-04-05 Thread Ky Srinivasan
I am attaching a clocksource driver for HyperV. Signed-off-by: K. Y. Srinivasan ksriniva...@novell.com From: K. Y. Srinivasan ksriniva...@novell.com Subject: A clocksource for Linux guests hosted on HyperV. References: None Patch-mainline: This patch is a clocksource implementation suitable

Re: A clocksource driver for HyperV

2010-04-05 Thread Jeremy Fitzhardinge
On 04/05/2010 01:30 PM, Ky Srinivasan wrote: +static cycle_t read_hv_clock(struct clocksource *arg) +{ + cycle_t current_tick; + /* + * Read the partition counter to get the current tick count. This count + * is set to 0 when the partition is created and is incremented in