From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH] Use memset(0) instead of setting cb_mode explicitly Date: Fri, 4 Jan 2008 14:03:47 +1100 Message-ID: <200801041403.47243.rusty@rustcorp.com.au> References: <11993758341994-git-send-email-aliguori@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, virtualization-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Anthony Liguori Return-path: In-Reply-To: <11993758341994-git-send-email-aliguori-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Friday 04 January 2008 02:57:14 Anthony Liguori wrote: > hrtimer's only have a cb_mode if CONFIG_HIGH_RES_TIMER is enabled. This > patch memset()s the tx_timer structure to 0 which has the same effect as > setting cb_mode to HRTIMER_CB_SOFTIRQ without requiring > CONFIG_HIGH_RES_TIMER to be set. This seems to be what other drivers do. Thanks, applied. Rusty. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/