From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759676Ab3FCTuQ (ORCPT ); Mon, 3 Jun 2013 15:50:16 -0400 Received: from smtp.codeaurora.org ([198.145.11.231]:42896 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903Ab3FCTuN (ORCPT ); Mon, 3 Jun 2013 15:50:13 -0400 Message-ID: <51ACF374.5040606@codeaurora.org> Date: Mon, 03 Jun 2013 12:50:12 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Baruch Siach CC: John Stultz , Russell King , linux-arm-msm@vger.kernel.org, Will Deacon , linux-kernel@vger.kernel.org, arm@kernel.org, Catalin Marinas , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCHv2 3/6] sched_clock: Make ARM's sched_clock generic for all architectures References: <1370155183-31421-1-git-send-email-sboyd@codeaurora.org> <1370155183-31421-4-git-send-email-sboyd@codeaurora.org> <20130603071235.GO11798@tarshish> In-Reply-To: <20130603071235.GO11798@tarshish> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/13 00:12, Baruch Siach wrote: > Hi Stephen, > > On Sat, Jun 01, 2013 at 11:39:40PM -0700, Stephen Boyd wrote: >> Nothing about the sched_clock implementation in the ARM port is >> specific to the architecture. Generalize the code so that other >> architectures can use it by selecting GENERIC_SCHED_CLOCK. >> >> Signed-off-by: Stephen Boyd >> --- >> arch/arm/Kconfig | 1 + >> arch/arm/common/timer-sp.c | 2 +- >> arch/arm/kernel/Makefile | 2 +- >> arch/arm/kernel/arch_timer.c | 2 +- >> arch/arm/kernel/time.c | 4 +--- >> arch/arm/mach-davinci/time.c | 2 +- >> arch/arm/mach-imx/time.c | 2 +- >> arch/arm/mach-integrator/integrator_ap.c | 2 +- >> arch/arm/mach-ixp4xx/common.c | 2 +- >> arch/arm/mach-mmp/time.c | 2 +- >> arch/arm/mach-msm/timer.c | 2 +- >> arch/arm/mach-omap1/time.c | 2 +- >> arch/arm/mach-omap2/timer.c | 2 +- >> arch/arm/mach-pxa/time.c | 2 +- >> arch/arm/mach-sa1100/time.c | 2 +- >> arch/arm/mach-u300/timer.c | 2 +- >> arch/arm/plat-iop/time.c | 2 +- >> arch/arm/plat-omap/counter_32k.c | 2 +- >> arch/arm/plat-orion/time.c | 2 +- >> arch/arm/plat-samsung/samsung-time.c | 2 +- >> arch/arm/plat-versatile/sched-clock.c | 2 +- >> drivers/clocksource/bcm2835_timer.c | 2 +- >> drivers/clocksource/clksrc-dbx500-prcmu.c | 3 +-- >> drivers/clocksource/dw_apb_timer_of.c | 2 +- >> drivers/clocksource/mxs_timer.c | 2 +- >> drivers/clocksource/nomadik-mtu.c | 2 +- >> drivers/clocksource/samsung_pwm_timer.c | 2 +- >> drivers/clocksource/tegra20_timer.c | 2 +- >> drivers/clocksource/time-armada-370-xp.c | 2 +- >> drivers/clocksource/timer-marco.c | 2 +- >> drivers/clocksource/timer-prima2.c | 2 +- >> {arch/arm/include/asm => include/linux}/sched_clock.h | 9 +++++++-- > Shouldn't we just merge this header into the existing linux/sched.h? I don't know. John/Thomas, any thoughts? One benefit with it this way is that we don't have to recompile all the timer drivers if we change sched.h for other reasons. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation