Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
On Tue, Jan 27, 2015 at 8:00 PM, Julien Grall wrote: > On 27/01/15 17:52, Oleksandr Tyshchenko wrote: >> On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall >> wrote: >>> Hi Oleksandr, >> Hi Julien >> >>> >>> On 27/01/15 13:39, Oleksandr Tyshchenko wrote: -/* Set up the timer on the boot CPU */ >

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Julien Grall
On 27/01/15 17:52, Oleksandr Tyshchenko wrote: > On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall wrote: >> Hi Oleksandr, > Hi Julien > >> >> On 27/01/15 13:39, Oleksandr Tyshchenko wrote: >>> -/* Set up the timer on the boot CPU */ >>> -int __init init_xen_time(void) >>> +static const struct dt_dev

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall wrote: > Hi Oleksandr, Hi Julien > > On 27/01/15 13:39, Oleksandr Tyshchenko wrote: >> -/* Set up the timer on the boot CPU */ >> -int __init init_xen_time(void) >> +static const struct dt_device_match timer_ids[] __initconst = >> +{ >> + DT_MATCH

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Julien Grall
Hi Oleksandr, On 27/01/15 13:39, Oleksandr Tyshchenko wrote: > -/* Set up the timer on the boot CPU */ > -int __init init_xen_time(void) > +static const struct dt_device_match timer_ids[] __initconst = > +{ > + DT_MATCH_TIMER, > + { /* sentinel */ }, > +}; > + > +/* Set up the timer on the

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
Hi, Ian On Tue, Jan 27, 2015 at 6:43 PM, Ian Campbell wrote: > On Tue, 2015-01-27 at 15:39 +0200, Oleksandr Tyshchenko wrote: >> Create preinit_xen_time() and move to it minimum required >> subset of operations needed to properly initialized >> cpu_khz and boot_count vars. This is allow us to use

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 15:39 +0200, Oleksandr Tyshchenko wrote: > Create preinit_xen_time() and move to it minimum required > subset of operations needed to properly initialized > cpu_khz and boot_count vars. This is allow us to use udelay() > immediately after the call. > > Changes in v2: > 1. Mov