From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761616AbXGYMIV (ORCPT ); Wed, 25 Jul 2007 08:08:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752800AbXGYMIM (ORCPT ); Wed, 25 Jul 2007 08:08:12 -0400 Received: from rex.snapgear.com ([203.143.235.140]:33027 "EHLO snapgear.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752059AbXGYMIL (ORCPT ); Wed, 25 Jul 2007 08:08:11 -0400 Date: Wed, 25 Jul 2007 22:07:20 +1000 From: Greg Ungerer Message-Id: <200707251207.l6PC7KBX032182@goober> To: torvalds@linux-foundation.org Subject: [M68KNOMMU]: fix tick timer definition for coldfire Cc: gerg@uclinux.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org CLOCK_TICK_RATE should give the underlying frequency of the tick timer, to make ntp happy. For Coldfires, that's the main clock. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer --- diff -Naur linux-2.6.22/include/asm-m68knommu/timex.h linux-2.6.22-uc0/include/asm-m68knommu/timex.h --- linux-2.6.22/include/asm-m68knommu/timex.h 2007-07-12 15:21:55.000000000 +1000 +++ linux-2.6.22-uc0/include/asm-m68knommu/timex.h 2007-07-12 15:23:59.000000000 +1000 @@ -1 +1,23 @@ -#include +/* + * linux/include/asm-m68knommu/timex.h + * + * m68knommu architecture timex specifications + */ +#ifndef _ASM_M68KNOMMU_TIMEX_H +#define _ASM_M68KNOMMU_TIMEX_H + +#ifdef CONFIG_COLDFIRE +#include +#define CLOCK_TICK_RATE MCF_CLK +#else +#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */ +#endif + +typedef unsigned long cycles_t; + +static inline cycles_t get_cycles(void) +{ + return 0; +} + +#endif