From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131Ab1BKDTi (ORCPT ); Thu, 10 Feb 2011 22:19:38 -0500 Received: from mprc.pku.edu.cn ([162.105.203.9]:58850 "EHLO mprc.pku.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab1BKDTg (ORCPT ); Thu, 10 Feb 2011 22:19:36 -0500 From: "Guan Xuetao" To: "'Thomas Gleixner'" , "'Guan Xuetao'" Cc: , "'Arnd Bergmann'" , , , , , , , References: <01c701cbba0f$08185800$18490800$@mprc.pku.edu.cn> In-Reply-To: Subject: RE: Request (2nd) for unicore32 architecture codes to merge into linux-next Date: Fri, 11 Feb 2011 11:18:40 +0800 Message-ID: <022d01cbc99a$63717e80$2a547b80$@mprc.pku.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQH3rUjqRbE+w9HUWAO/ws6rlHUprgGpnUTWk5aMvGA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > arch/unicore32/kernel/time.c | 148 +++++ > > static struct clock_event_device ckevt_puv3_osmr0 ... > #ifdef CONFIG_ARCH_FPGA > .shift = 18, /* correct shift val: 16, but warn_on_slowpath */ > #else > .shift = 30, > #endif > > .... > ckevt_puv3_osmr0.mult = > div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, ckevt_puv3_osmr0.shift); > > Please use the function which calculates the optimizes mult/shift > values for you depending on the clock frequency. > > clockevents_calc_mult_shift() is your friend. > > > arch/unicore32/kernel/irq.c | 426 +++++++++++++ > > Please convert your irq_chips to the new function pointers: > > .mask -> .irq_mask > ... > > The new functions replace the "unsigned int irq" argument with > "struct irq_data *d". > > So conversion for your chips is simply > > s/unsigned int irq/struct irq_data *d/ > > and > > s/irq/d->irq/ in the implementation. > > Then your arch should select: GENERIC_HARDIRQS_NO_DEPRECATED > > Otherwise I'm happy with your irq and time related patches. > > Thanks, > > tglx Thanks Thomas. I will apply the advice and test it lator. Guan Xuetao