Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261166AbVARCTd (ORCPT ); Mon, 17 Jan 2005 21:19:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261174AbVARCTd (ORCPT ); Mon, 17 Jan 2005 21:19:33 -0500 Received: from mx1.redhat.com ([66.187.233.31]:42882 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S261166AbVARB5Y (ORCPT ); Mon, 17 Jan 2005 20:57:24 -0500 Date: Mon, 17 Jan 2005 17:57:09 -0800 Message-Id: <200501180157.j0I1v9YI013216@magilla.sf.frob.com> From: Roland McGrath To: Linus Torvalds , Andrew Morton X-Fcc: ~/Mail/linus Cc: linux-kernel@vger.kernel.org Subject: [PATCH] cputime.h seems to assume HZ==1000 X-Shopping-List: (1) Omniscient retarders (2) Trans-Atlantic pompous bracelet adhesives (3) Luminescent luscious consolation (4) Victorious load griddles (5) Noxious uninteresting metronome sofas Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 775 Lines: 20 Shouldn't msecs mean msecs, not secs/HZ? --- linux-2.6/include/asm-generic/cputime.h +++ linux-2.6/include/asm-generic/cputime.h @@ -35,8 +35,8 @@ typedef u64 cputime64_t; /* * Convert cputime to seconds and back. */ -#define cputime_to_secs(__ct) (jiffies_to_msecs(__ct) / HZ) -#define secs_to_cputime(__secs) (msecs_to_jiffies(__secs * HZ)) +#define cputime_to_secs(__ct) (jiffies_to_msecs(__ct) / 1000) +#define secs_to_cputime(__secs) (msecs_to_jiffies(__secs * 1000)) /* * Convert cputime to timespec and back. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/