* [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful
@ 2014-12-12 21:31 Joshua Kinard
2014-12-12 21:49 ` David Daney
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Kinard @ 2014-12-12 21:31 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Linux MIPS List
Change the R4K clockevent device's name from "MIPS" to something a bit more
meaningful, "CEVT-R4K".
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
---
arch/mips/kernel/cevt-r4k.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
index bc127e2..f531cac 100644
--- a/arch/mips/kernel/cevt-r4k.c
+++ b/arch/mips/kernel/cevt-r4k.c
@@ -178,7 +178,7 @@ int r4k_clockevent_init(void)
cd = &per_cpu(mips_clockevent_device, cpu);
- cd->name = "MIPS";
+ cd->name = "CEVT-R4K";
cd->features = CLOCK_EVT_FEAT_ONESHOT |
CLOCK_EVT_FEAT_C3STOP |
CLOCK_EVT_FEAT_PERCPU;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful
2014-12-12 21:31 [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful Joshua Kinard
@ 2014-12-12 21:49 ` David Daney
2014-12-12 22:19 ` Joshua Kinard
0 siblings, 1 reply; 3+ messages in thread
From: David Daney @ 2014-12-12 21:49 UTC (permalink / raw)
To: Joshua Kinard; +Cc: Ralf Baechle, Linux MIPS List
On 12/12/2014 01:31 PM, Joshua Kinard wrote:
> Change the R4K clockevent device's name from "MIPS" to something a bit more
> meaningful, "CEVT-R4K".
>
This is visible to userspace, so how does changing this effect the
kernel <--> userspace ABI? Or in other words, what uses this, and could
changing it possibly break things?
David Daney
> Signed-off-by: Joshua Kinard <kumba@gentoo.org>
> ---
> arch/mips/kernel/cevt-r4k.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
> index bc127e2..f531cac 100644
> --- a/arch/mips/kernel/cevt-r4k.c
> +++ b/arch/mips/kernel/cevt-r4k.c
> @@ -178,7 +178,7 @@ int r4k_clockevent_init(void)
>
> cd = &per_cpu(mips_clockevent_device, cpu);
>
> - cd->name = "MIPS";
> + cd->name = "CEVT-R4K";
> cd->features = CLOCK_EVT_FEAT_ONESHOT |
> CLOCK_EVT_FEAT_C3STOP |
> CLOCK_EVT_FEAT_PERCPU;
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful
2014-12-12 21:49 ` David Daney
@ 2014-12-12 22:19 ` Joshua Kinard
0 siblings, 0 replies; 3+ messages in thread
From: Joshua Kinard @ 2014-12-12 22:19 UTC (permalink / raw)
To: David Daney; +Cc: Ralf Baechle, Linux MIPS List
On 12/12/2014 16:49, David Daney wrote:
> On 12/12/2014 01:31 PM, Joshua Kinard wrote:
>> Change the R4K clockevent device's name from "MIPS" to something a bit more
>> meaningful, "CEVT-R4K".
>>
>
> This is visible to userspace, so how does changing this effect the kernel <-->
> userspace ABI? Or in other words, what uses this, and could changing it
> possibly break things?
>
> David Daney
I haven't noticed any issues in userspace running this change on the Octane.
R4k is the only clockevent_device using the name of "MIPS", so if there is some
userspace program relying on that, I would imagine it'd fail on the other
clockevent_device providers as they use different names. I suspect that R4k
was the original clockevent_device/timer, so it got defaulted to "MIPS". Since
there's several providers now, differentiating R4K seems logical.
--J
>> Signed-off-by: Joshua Kinard <kumba@gentoo.org>
>> ---
>> arch/mips/kernel/cevt-r4k.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c
>> index bc127e2..f531cac 100644
>> --- a/arch/mips/kernel/cevt-r4k.c
>> +++ b/arch/mips/kernel/cevt-r4k.c
>> @@ -178,7 +178,7 @@ int r4k_clockevent_init(void)
>>
>> cd = &per_cpu(mips_clockevent_device, cpu);
>>
>> - cd->name = "MIPS";
>> + cd->name = "CEVT-R4K";
>> cd->features = CLOCK_EVT_FEAT_ONESHOT |
>> CLOCK_EVT_FEAT_C3STOP |
>> CLOCK_EVT_FEAT_PERCPU;
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-12 22:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-12 21:31 [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful Joshua Kinard
2014-12-12 21:49 ` David Daney
2014-12-12 22:19 ` Joshua Kinard
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.