From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Subject: Re: [PATCH 03/56] microblaze_v2: Cpuinfo handling Date: Mon, 05 May 2008 16:19:38 +0200 Message-ID: <481F177A.4000300@seznam.cz> References: <1209901305-6404-1-git-send-email-monstr@seznam.cz> <1209952342.5798.37.camel@localhost> Reply-To: monstr@seznam.cz Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.wifiinternet.cz ([89.31.47.1]:50240 "EHLO bor.wifiinternet.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755951AbYEEOSb (ORCPT ); Mon, 5 May 2008 10:18:31 -0400 In-Reply-To: <1209952342.5798.37.camel@localhost> Sender: linux-arch-owner@vger.kernel.org List-ID: To: John Williams Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, stephen.neuendorffer@xilinx.com, John.Linn@xilinx.com, matthew@wil.cx, will.newton@gmail.com, drepper@redhat.com, microblaze-uclinux@itee.uq.edu.au, grant.likely@secretlab.ca, Michal Simek >> --- /dev/null >> +++ b/arch/microblaze/kernel/cpu/cpuinfo-static.c >> @@ -0,0 +1,117 @@ > >> + >> + ci->cpu_clock_freq = fcpu(cpu, "timebase-frequency"); > > Should this be added to cpuinfo-pvr.c? I moved it. This was in cpuinfo.c because you can't load frequency from PVR regs. this value was loaded from DTS and I don't want to setup second parameter to pvr function. >> --- /dev/null >> +++ b/include/asm-microblaze/cpuinfo.h > ... > >> + /* HW debug support */ >> + int hw_debug; >> + int num_pc_brk; >> + int num_rd_brk; >> + int num_wr_brk; > > + /* CPU and system timebase info */ >> + int cpu_clock_freq; >> + > >> +void set_cpuinfo_pvr_partial(struct cpuinfo *ci); > > pvr_partial never got written - it can be deleted. I removed it and changed values M