Re: [RFC PATCH v2 06/14] x86/hpet: Configure the timer used by the hardlockup detector

2019-04-08 Thread Ricardo Neri
On Tue, Mar 26, 2019 at 10:13:06PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > +#ifdef CONFIG_X86_HARDLOCKUP_DETECTOR_HPET > > +struct hpet_hld_data *hpet_hardlockup_detector_assign_timer(void) > > +{ > > + struct hpet_hld_data *hdata; > > + unsigned int cfg; >

Re: [RFC PATCH v2 06/14] x86/hpet: Configure the timer used by the hardlockup detector

2019-03-26 Thread Thomas Gleixner
On Wed, 27 Feb 2019, Ricardo Neri wrote: > +#ifdef CONFIG_X86_HARDLOCKUP_DETECTOR_HPET > +struct hpet_hld_data *hpet_hardlockup_detector_assign_timer(void) > +{ > + struct hpet_hld_data *hdata; > + unsigned int cfg; > + > + cfg = hpet_readl(HPET_Tn_CFG(HPET_WD_TIMER_NR)); > + > + if

[RFC PATCH v2 06/14] x86/hpet: Configure the timer used by the hardlockup detector

2019-02-27 Thread Ricardo Neri
Implement the initial configuration of the timer to be used by the hardlockup detector. Return a data structure with a description of the timer; this information is subsequently used by the hardlockup detector. Only provide the timer if it supports Front Side Bus interrupt delivery. This condition