]> xenbits.xensource.com Git - xen.git/commit
x86/HPET: fix initialization order
authorJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:28:05 +0000 (13:28 +0000)
committerJan Beulich <jbeulich@novell.com>
Sat, 12 Mar 2011 13:28:05 +0000 (13:28 +0000)
commit721dab2acdeb00a458719e549ab1916fc415b49b
treea9ec056d70cc5d578da354372550d33885f75430
parent48dc4855022cdedbd6c1cfd6d2c6eb70350aa7b1
x86/HPET: fix initialization order

At least the legacy path can enter its interrupt handler callout while
initialization is still in progress - that handler checks whether
->event_handler is non-NULL, and hence all other initialization must
happen before setting this field.

Do the same to the MSI initialization just in case (and to keep the
code in sync).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Acked-by: Wei Gang <gang.wei@intel.com>
xen-unstable changeset:   23030:87aa1277eae0
xen-unstable date:        Sat Mar 12 13:19:02 2011 +0000
xen/arch/x86/hpet.c