From patchwork Thu Jul 18 13:53:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2829659 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3FB8A9F967 for ; Thu, 18 Jul 2013 13:53:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9ECE2201E8 for ; Thu, 18 Jul 2013 13:53:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C9A4F201D1 for ; Thu, 18 Jul 2013 13:53:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758871Ab3GRNxq (ORCPT ); Thu, 18 Jul 2013 09:53:46 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:58746 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758335Ab3GRNxq (ORCPT ); Thu, 18 Jul 2013 09:53:46 -0400 Received: by mail-wg0-f45.google.com with SMTP id j13so2970273wgh.24 for ; Thu, 18 Jul 2013 06:53:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=2FLpCLI16uT5DNMGeqgXpn+ESVae+UOxlxwNmi/lP5M=; b=p0FEBsB2dAIMI+k3qVZsiwvTk2IyaW6R+bh+basWnKzfBkGxB451tbP1ocIq5/wDfg wvkXA6g4+BLE1Y3hmU9svzJTfJjmUtsrX2g9Is0pnkcvg9+oEUt+V0OUp7tik9BaB2i8 YxSxaUN/8Z0Np/az/KOoWF6pdDuutawzlaEbO3osWSFnhp4/jxVLIH6uPVZQgcz4ex/q MxNmGyXG70PM3/PULCa0/6ena5ZfmeXA7gupsC0efxbTvZiL5K3tRZqTqtO6o14iZKYX ADWFpA192BWS2ETUOvdb6suqVdmZtDvkf4e9IbD3136Q/AOm7Ebjvw+cQeOZWnYNWzZA 2ZBg== X-Received: by 10.180.74.8 with SMTP id p8mr19416169wiv.32.1374155624648; Thu, 18 Jul 2013 06:53:44 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPSA id h8sm16768757wie.1.2013.07.18.06.53.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Jul 2013 06:53:43 -0700 (PDT) Message-ID: <51E7F35E.1050208@dev.mellanox.co.il> Date: Thu, 18 Jul 2013 09:53:34 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Alex Netes Subject: [PATCH opensm] complib/cl_event_wheel.c: Roundup timeout to nearest msec X-Gm-Message-State: ALoCoQltmpKyjuC6REQMQowZWqov5E0scQs8zH3djUxmmicXcY4ZzTj/0OO667eAixy8B828WIuz Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alex Netes Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/complib/cl_event_wheel.c b/complib/cl_event_wheel.c index 24f3e31..27443f6 100644 --- a/complib/cl_event_wheel.c +++ b/complib/cl_event_wheel.c @@ -167,8 +167,7 @@ static void __cl_event_wheel_callback(IN void *context) /* start the timer to the timeout [msec] */ new_timeout = - (uint32_t) (((p_event->aging_time - current_time) / 1000) + - 0.5); + (uint32_t) ((p_event->aging_time - current_time + 500) / 1000); CL_DBG("__cl_event_wheel_callback: Restart timer in: " "%u [msec]\n", new_timeout); cl_status = cl_timer_start(&p_event_wheel->timer, new_timeout);