Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754388AbZKVLzR (ORCPT ); Sun, 22 Nov 2009 06:55:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752382AbZKVLzQ (ORCPT ); Sun, 22 Nov 2009 06:55:16 -0500 Received: from gateway-1237.mvista.com ([206.112.117.35]:15488 "HELO imap.sh.mvista.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1752726AbZKVLzP (ORCPT ); Sun, 22 Nov 2009 06:55:15 -0500 Message-ID: <4B09269B.8070602@ru.mvista.com> Date: Sun, 22 Nov 2009 14:55:07 +0300 From: Sergei Shtylyov User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: wuzhangjin@gmail.com Cc: Ingo Molnar , Ralf Baechle , linux-mips@linux-mips.org, Thomas Gleixner , Michal Simek , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] MIPS: Add a high resolution sched_clock() via cnt32_to_63(). References: <20091122081328.GB24558@elte.hu> <1258888086.4548.52.camel@falcon.domain.org> In-Reply-To: <1258888086.4548.52.camel@falcon.domain.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 648 Lines: 23 Hello. Wu Zhangjin wrote: >>> +static void __maybe_unused setup_sched_clock_update(unsigned long tclk) >>> +{ >>> + unsigned long data; >>> + >>> + data = (0xffffffffUL / tclk / 2 - 2) * HZ; >>> > > Because the MIPS c0 count's frequency is half of the cpu frequency(Hi, Ralf, does every MIPS c0 count meet this feature?), No, e.g. Alchemy's C0 Count ticks at full CPU speed. WBR, Sergei -- 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/