WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-4.0-testing] x86: Bail from hpet_disable_legacy_bro

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised.
From: Xen patchbot-4.0-testing <patchbot@xxxxxxx>
Date: Tue, 26 Apr 2011 21:25:08 +0100
Delivery-date: Tue, 26 Apr 2011 13:25:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1303823546 -3600
# Node ID 8b5cb0931ec253aea589c74e7a71b17f9cd3868a
# Parent  e102c30f19c80e085890e471e68795ceb5ec15cf
x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is 
uninitialised.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
xen-4.1-testing changeset:   23034:7c7ef1b6f4e5
xen-4.1-testing date:        Tue Apr 26 14:11:18 2011 +0100
---


diff -r e102c30f19c8 -r 8b5cb0931ec2 xen/arch/x86/hpet.c
--- a/xen/arch/x86/hpet.c       Mon Apr 25 13:45:06 2011 +0100
+++ b/xen/arch/x86/hpet.c       Tue Apr 26 14:12:26 2011 +0100
@@ -624,6 +624,9 @@
     u32 cfg;
     unsigned long flags;
 
+    if ( !legacy_hpet_event.shift )
+        return;
+
     spin_lock_irqsave(&legacy_hpet_event.lock, flags);
 
     legacy_hpet_event.flags |= HPET_EVT_DISABLE;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86: Bail from hpet_disable_legacy_broadcast() if legacy_hpet_event is uninitialised., Xen patchbot-4 . 0-testing <=