Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Joshua Kinard <kumba@gentoo.org>
To: David Daney <ddaney.cavm@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	Linux MIPS List <linux-mips@linux-mips.org>
Subject: Re: [PATCH] MIPS: CEVT: Make R4K's clockevent_device name more meaningful
Date: Fri, 12 Dec 2014 17:19:36 -0500	[thread overview]
Message-ID: <548B69F8.3000104@gentoo.org> (raw)
In-Reply-To: <548B62D1.4000809@gmail.com>

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;
>>

      reply	other threads:[~2014-12-12 22:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=548B69F8.3000104@gentoo.org \
    --to=kumba@gentoo.org \
    --cc=ddaney.cavm@gmail.com \
    --cc=linux-mips@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox