Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1259470
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay |
| Date | Fri, 30 Oct 2015 13:40:01 +0100 |
| Message-ID | <qph8l-5O2-3@gated-at.bofh.it> (permalink) |
| References | <qpdo5-3wq-1@gated-at.bofh.it> <qpfpU-4J3-11@gated-at.bofh.it> <qpfSW-58P-15@gated-at.bofh.it> |
| X-Original-To | Jisheng Zhang <jszhang@marvell.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=1GMTLmSmupL8S/wXU4aQUHrpLJgAeUXR0JLlILUJoJo=; b=HNl6z7T33h55xa7Ow+nPAhl/z68eePCPpuWIYMDLx99aMK3y2K31GUJgc2BBBbmTAx ptlmVEOTOtbNOON6gPNM/jmXCLhsuuQArXGdga4YpgrigUwF+nhn72gq7U8aDzNejWS+ a6Zf5SME+7dvu1elOAMliZJEUuCgvUbHHuQPz1y2h48gsWioWC6xAn3IEyXdTshEiVT9 q2XQMr2UQdZvHGixkuJ5H0yB6v57GbQhFWsTs0brm9F/qcupWUFEtAMd/3H5NC/vBBRu 31A+XEdKwE4rDc0uT/9GRU2odaDkF/c7UlgjWaEhTuA7LSEjbvDKRxvjrWFgLSP/9L+k oD0A== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=1GMTLmSmupL8S/wXU4aQUHrpLJgAeUXR0JLlILUJoJo=; b=DzTsex5eDz3dxmAnrLz3B7ETQkXI+lFWKmxNj6TGFm4bJhF92DnnyIuJRpH7d6DLRX JCRFvb6+R0pYr20nHB0dw8X93B5AhaXh9Ym9h//884Wzs4mtn3bGvFi5EDKWnpEnIsNE z2dm+5t8BM9ug3odxVG2XcMIForNc5rCqynpZbSl8Ph9dMXtGhhcXRBhUvDYiYc8QF2l wJFgp1OOYfFAUU1tJeadUb7ZrZSDvfwcHKDRoN64gj8CFsF/35Zj655cZ2CzUSBaKPJp RV+Li9mrHWbIZEH7dixLXcPWh1/BZuVP2+ozADJ5ooHtmXL2Op8Y2I7xc/Usc+S9hccn I7uw== |
| X-Gm-Message-State | ALoCoQlounKiJbh+s90bZKNCXRUvwMf2lTMr9FB0uUR1jqr7lP/BbtACoL6dkGfFrckgqBGRtm7R |
| X-Received | by 10.195.13.18 with SMTP id eu18mr9291652wjd.40.1446208623828; Fri, 30 Oct 2015 05:37:03 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 63 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org |
| X-Original-Date | Fri, 30 Oct 2015 13:37:01 +0100 |
| X-Original-Message-ID | <5633646D.7030206@linaro.org> |
| X-Original-References | <1446193659-1698-1-git-send-email-jszhang@marvell.com> <56334A1E.7060709@linaro.org> <20151030190929.4c46066c@xhacker> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1259470 |
Show key headers only | View raw
On 10/30/2015 12:09 PM, Jisheng Zhang wrote: > Dear Daniel, > > On Fri, 30 Oct 2015 11:44:46 +0100 > Daniel Lezcano <daniel.lezcano@....> wrote: > >> On 10/30/2015 09:27 AM, Jisheng Zhang wrote: >>> Implement an ARM delay timer to be used for udelay(). This allows us to >>> skip the delay loop calibration at boot on Marvell BG2, BG2Q, BG2CD >>> platforms. And after this patch, udelay() will be unaffected by CPU >>> frequency changes. >>> >>> Signed-off-by: Jisheng Zhang <jszhang@marvell.com> >>> --- >>> drivers/clocksource/Kconfig | 10 ++++++++++ >>> drivers/clocksource/dw_apb_timer_of.c | 16 ++++++++++++++++ >>> 2 files changed, 26 insertions(+) >>> >>> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig >>> index a7726db..7b081805 100644 >>> --- a/drivers/clocksource/Kconfig >>> +++ b/drivers/clocksource/Kconfig >>> @@ -29,6 +29,16 @@ config DW_APB_TIMER_OF >>> select DW_APB_TIMER >>> select CLKSRC_OF >>> >>> +config DW_APB_TIMER_BASED_DELAY >>> + bool "DW APB timer based delay" >>> + depends on ARM && DW_APB_TIMER_OF >>> + default n >>> + help >>> + This option enables support for using the DW APB timer to >>> + implement timer-based delay. It is useful for skiping the >>> + delay loop calibration at boot on some platforms. And the >>> + udelay() will be unaffected by CPU frequency changes. >>> + >> >> Why do you want it to be optional ? >> > > Because in some platforms which has arm arch timer, this dw apb timer > delay isn't needed, the arch timer is better. So we want it be optional > so that the platforms which need this feature select it manually when config > the kernel. Correct me if I am wrong. If you have the arch timer, you don't need the dw apb timer at all, no ? So the selection would be arch arm timer *or* dw_apb_timer ? not arch_arm_timer for delay and dw_apb_timer for clockevents, right ? -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog -- 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] clocksource: dw_apb_timer_of: support timer-based delay Jisheng Zhang <jszhang@marvell.com> - 2015-10-30 09:40 +0100
Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay Jisheng Zhang <jszhang@marvell.com> - 2015-10-30 11:30 +0100
Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-10-30 11:50 +0100
Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay Jisheng Zhang <jszhang@marvell.com> - 2015-10-30 12:20 +0100
Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-10-30 13:40 +0100
Re: [PATCH] clocksource: dw_apb_timer_of: support timer-based delay Arnd Bergmann <arnd@arndb.de> - 2015-10-30 13:50 +0100
csiph-web