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] Avoid using unexported add_timer_on() function in netbac

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Avoid using unexported add_timer_on() function in netback driver.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 01 Mar 2006 02:16:06 +0000
Delivery-date: Wed, 01 Mar 2006 02:16:27 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8ac43508b33bb50a96dd7b99c227cf36c8066f9d
# Parent  c369d960f96ba4fd7c9c6920cfa60c46a764323c
Avoid using unexported add_timer_on() function in netback driver.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r c369d960f96b -r 8ac43508b33b 
linux-2.6-xen-sparse/drivers/xen/netback/netback.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Tue Feb 28 
16:45:20 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c        Tue Feb 28 
17:15:18 2006
@@ -505,14 +505,12 @@
                        /* Still too big to send right now? Set a callback. */
                        if (txreq.size > netif->remaining_credit) {
                                netif->remaining_credit = 0;
-                               netif->credit_timeout.expires  = 
-                                       next_credit;
                                netif->credit_timeout.data     =
                                        (unsigned long)netif;
                                netif->credit_timeout.function =
                                        tx_credit_callback;
-                               add_timer_on(&netif->credit_timeout,
-                                            smp_processor_id());
+                               __mod_timer(&netif->credit_timeout,
+                                           next_credit);
                                break;
                        }
                }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Avoid using unexported add_timer_on() function in netback driver., Xen patchbot -unstable <=