From: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>,
Russell King <linux@arm.linux.org.uk>
Cc: <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 04/15] MIPS: Add sched_clock support
Date: Fri, 6 Mar 2015 15:23:20 -0800 [thread overview]
Message-ID: <54FA36E8.7010501@imgtec.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1503061146430.15786@eddie.linux-mips.org>
On 03/06/2015 03:58 AM, Maciej W. Rozycki wrote:
> On Wed, 4 Mar 2015, Deng-Cheng Zhu wrote:
>
>> This will provide sched_clock interface to implement individual
>> read_sched_clock(). Not for CAVIUM_OCTEON_SOC as it defines its own
>> sched_clock() directly (not using the sched_clock_register interface).
>>
>> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
>> ---
>> arch/mips/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
>> index 068592a..09405dc 100644
>> --- a/arch/mips/Kconfig
>> +++ b/arch/mips/Kconfig
>> @@ -43,6 +43,7 @@ config MIPS
>> select GENERIC_SMP_IDLE_THREAD
>> select BUILDTIME_EXTABLE_SORT
>> select GENERIC_CLOCKEVENTS
>> + select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
>> select GENERIC_CMOS_UPDATE
>> select HAVE_MOD_ARCH_SPECIFIC
>> select VIRT_TO_BUS
> Why does this change add this question:
>
> ARM Versatile (Express) reference platforms clock source (CLKSRC_VERSATILE) [N/y/?] (NEW) ?
Good catch.
>
> This option enables clock source based on free running
> counter available in the "System Registers" block of
> ARM Versatile, RealView and Versatile Express reference
> platforms.
>
> Symbol: CLKSRC_VERSATILE [=n]
> Type : boolean
> Prompt: ARM Versatile (Express) reference platforms clock source
> Location:
> -> Device Drivers
> -> Clock Source drivers
> Defined at drivers/clocksource/Kconfig:216
> Depends on: GENERIC_SCHED_CLOCK [=y] && !ARCH_USES_GETTIMEOFFSET [=n]
> Selects: CLKSRC_OF [=n]
>
> to a MIPS configuration? I find it silly, this appears a platform
> device to me (use reverse dependencies?).
GENERIC_SCHED_CLOCK is generic, by default it uses jiffy_sched_clock_read()
for read_sched_clock(). Instead of using reverse dependencies, I suggest
the following:
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 1c2506f..22e0ee1 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -225,7 +225,7 @@ config CLKSRC_QCOM
config CLKSRC_VERSATILE
bool "ARM Versatile (Express) reference platforms clock source"
- depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
+ depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK &&
!ARCH_USES_GETTIMEOFFSET
select CLKSRC_OF
default y if MFD_VEXPRESS_SYSREG
help
Deng-Cheng
WARNING: multiple messages have this Message-ID (diff)
From: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>,
Russell King <linux@arm.linux.org.uk>
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 04/15] MIPS: Add sched_clock support
Date: Fri, 6 Mar 2015 15:23:20 -0800 [thread overview]
Message-ID: <54FA36E8.7010501@imgtec.com> (raw)
Message-ID: <20150306232320.7kCOXfyJ3llGUovBd9ubNn5aQt7fvZy2MFoopMzCG4Y@z> (raw)
In-Reply-To: <alpine.LFD.2.11.1503061146430.15786@eddie.linux-mips.org>
On 03/06/2015 03:58 AM, Maciej W. Rozycki wrote:
> On Wed, 4 Mar 2015, Deng-Cheng Zhu wrote:
>
>> This will provide sched_clock interface to implement individual
>> read_sched_clock(). Not for CAVIUM_OCTEON_SOC as it defines its own
>> sched_clock() directly (not using the sched_clock_register interface).
>>
>> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
>> ---
>> arch/mips/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
>> index 068592a..09405dc 100644
>> --- a/arch/mips/Kconfig
>> +++ b/arch/mips/Kconfig
>> @@ -43,6 +43,7 @@ config MIPS
>> select GENERIC_SMP_IDLE_THREAD
>> select BUILDTIME_EXTABLE_SORT
>> select GENERIC_CLOCKEVENTS
>> + select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
>> select GENERIC_CMOS_UPDATE
>> select HAVE_MOD_ARCH_SPECIFIC
>> select VIRT_TO_BUS
> Why does this change add this question:
>
> ARM Versatile (Express) reference platforms clock source (CLKSRC_VERSATILE) [N/y/?] (NEW) ?
Good catch.
>
> This option enables clock source based on free running
> counter available in the "System Registers" block of
> ARM Versatile, RealView and Versatile Express reference
> platforms.
>
> Symbol: CLKSRC_VERSATILE [=n]
> Type : boolean
> Prompt: ARM Versatile (Express) reference platforms clock source
> Location:
> -> Device Drivers
> -> Clock Source drivers
> Defined at drivers/clocksource/Kconfig:216
> Depends on: GENERIC_SCHED_CLOCK [=y] && !ARCH_USES_GETTIMEOFFSET [=n]
> Selects: CLKSRC_OF [=n]
>
> to a MIPS configuration? I find it silly, this appears a platform
> device to me (use reverse dependencies?).
GENERIC_SCHED_CLOCK is generic, by default it uses jiffy_sched_clock_read()
for read_sched_clock(). Instead of using reverse dependencies, I suggest
the following:
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 1c2506f..22e0ee1 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -225,7 +225,7 @@ config CLKSRC_QCOM
config CLKSRC_VERSATILE
bool "ARM Versatile (Express) reference platforms clock source"
- depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
+ depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK &&
!ARCH_USES_GETTIMEOFFSET
select CLKSRC_OF
default y if MFD_VEXPRESS_SYSREG
help
Deng-Cheng
WARNING: multiple messages have this Message-ID (diff)
From: dengcheng.zhu@imgtec.com (Deng-Cheng Zhu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 04/15] MIPS: Add sched_clock support
Date: Fri, 6 Mar 2015 15:23:20 -0800 [thread overview]
Message-ID: <54FA36E8.7010501@imgtec.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1503061146430.15786@eddie.linux-mips.org>
On 03/06/2015 03:58 AM, Maciej W. Rozycki wrote:
> On Wed, 4 Mar 2015, Deng-Cheng Zhu wrote:
>
>> This will provide sched_clock interface to implement individual
>> read_sched_clock(). Not for CAVIUM_OCTEON_SOC as it defines its own
>> sched_clock() directly (not using the sched_clock_register interface).
>>
>> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
>> ---
>> arch/mips/Kconfig | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
>> index 068592a..09405dc 100644
>> --- a/arch/mips/Kconfig
>> +++ b/arch/mips/Kconfig
>> @@ -43,6 +43,7 @@ config MIPS
>> select GENERIC_SMP_IDLE_THREAD
>> select BUILDTIME_EXTABLE_SORT
>> select GENERIC_CLOCKEVENTS
>> + select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
>> select GENERIC_CMOS_UPDATE
>> select HAVE_MOD_ARCH_SPECIFIC
>> select VIRT_TO_BUS
> Why does this change add this question:
>
> ARM Versatile (Express) reference platforms clock source (CLKSRC_VERSATILE) [N/y/?] (NEW) ?
Good catch.
>
> This option enables clock source based on free running
> counter available in the "System Registers" block of
> ARM Versatile, RealView and Versatile Express reference
> platforms.
>
> Symbol: CLKSRC_VERSATILE [=n]
> Type : boolean
> Prompt: ARM Versatile (Express) reference platforms clock source
> Location:
> -> Device Drivers
> -> Clock Source drivers
> Defined at drivers/clocksource/Kconfig:216
> Depends on: GENERIC_SCHED_CLOCK [=y] && !ARCH_USES_GETTIMEOFFSET [=n]
> Selects: CLKSRC_OF [=n]
>
> to a MIPS configuration? I find it silly, this appears a platform
> device to me (use reverse dependencies?).
GENERIC_SCHED_CLOCK is generic, by default it uses jiffy_sched_clock_read()
for read_sched_clock(). Instead of using reverse dependencies, I suggest
the following:
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 1c2506f..22e0ee1 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -225,7 +225,7 @@ config CLKSRC_QCOM
config CLKSRC_VERSATILE
bool "ARM Versatile (Express) reference platforms clock source"
- depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
+ depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK &&
!ARCH_USES_GETTIMEOFFSET
select CLKSRC_OF
default y if MFD_VEXPRESS_SYSREG
help
Deng-Cheng
next prev parent reply other threads:[~2015-03-06 23:23 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-05 0:58 [PATCH 00/15] MIPS: Add cputime/clock/hrtick features Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 01/15] MIPS: Add SCHED_HRTICK support Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 02/15] MIPS: Fall back to generic implementation of cmpxchg64 on 32-bit platforms Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 03/15] MIPS: Add support for full dynticks CPU time accounting Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 04/15] MIPS: Add sched_clock support Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-06 11:58 ` Maciej W. Rozycki
2015-03-06 11:58 ` Maciej W. Rozycki
2015-03-06 23:23 ` Deng-Cheng Zhu [this message]
2015-03-06 23:23 ` Deng-Cheng Zhu
2015-03-06 23:23 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 05/15] MIPS: csrc-r4k: Implement read_sched_clock Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 06/15] MIPS: csrc-bcm1480: Remove FSF mail address from GPL notice Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 07/15] MIPS: csrc-bcm1480: Implement read_sched_clock Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 08/15] MIPS: csrc-ioasic: Remove FSF mail address from GPL notice Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-06 11:23 ` Maciej W. Rozycki
2015-03-05 0:58 ` [PATCH 09/15] MIPS: csrc-ioasic: Implement read_sched_clock Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-06 12:07 ` Maciej W. Rozycki
2015-03-05 0:58 ` [PATCH 10/15] MIPS: sgi-ip27: " Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 11/15] MIPS: cevt-txx9: " Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 12/15] MIPS: jz4740: " Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 13/15] MIPS: csrc-sb1250: Remove FSF mail address from GPL notice Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 14/15] MIPS: csrc-sb1250: Implement read_sched_clock Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
2015-03-06 12:47 ` Maciej W. Rozycki
2015-03-06 21:52 ` Deng-Cheng Zhu
2015-03-06 21:52 ` Deng-Cheng Zhu
2015-03-05 0:58 ` [PATCH 15/15] MIPS: Add support for fine granularity task level IRQ time accounting Deng-Cheng Zhu
2015-03-05 0:58 ` Deng-Cheng Zhu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54FA36E8.7010501@imgtec.com \
--to=dengcheng.zhu@imgtec.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=linux@arm.linux.org.uk \
--cc=macro@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.