lkml.org 
[lkml]   [2008]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 09 of 38] x86: make sure we really have an hpet mapping before using it
    Date
    From
    When booting in Xen dom0, the hpet isn't really accessible, so make
    sure the mapping is non-NULL before use.

    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
    ---
    arch/x86/kernel/hpet.c | 5 +++--
    1 file changed, 3 insertions(+), 2 deletions(-)

    diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c
    --- a/arch/x86/kernel/hpet.c
    +++ b/arch/x86/kernel/hpet.c
    @@ -834,10 +834,11 @@

    hpet_address = force_hpet_address;
    hpet_enable();
    - if (!hpet_virt_address)
    - return -ENODEV;
    }

    + if (!hpet_virt_address)
    + return -ENODEV;
    +
    hpet_reserve_platform_timers(hpet_readl(HPET_ID));

    for_each_online_cpu(cpu) {



    \
     
     \ /
      Last update: 2008-11-13 20:39    [W:0.018 / U:3.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site