unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: Carlos O'Donell <carlos@redhat.com>,
	Stan Shebs <stanshebs@google.com>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [glibc/google/grte/v5-2.27/master] Fix sense of a test in the static-linking version of ppc get_clockfreq
Date: Wed, 29 May 2019 10:33:31 -0300	[thread overview]
Message-ID: <46c3916d-c803-d2e7-4d3c-ce01c1a9faf0@linaro.org> (raw)
In-Reply-To: <0346f018-0ed7-451a-31b7-dedec56be152@redhat.com>



On 18/05/2019 01:35, Carlos O'Donell wrote:
> On 5/17/19 2:25 PM, Stan Shebs wrote:
>> https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4791e4f773d060c1a37b27aac5b03cdfa9327afc
>>
>> commit 4791e4f773d060c1a37b27aac5b03cdfa9327afc
>> Author: Stan Shebs <stanshebs@google.com>
>> Date:   Fri May 17 12:25:19 2019 -0700
>>
>>     Fix sense of a test in the static-linking version of ppc get_clockfreq
>>
> 
> Stan,
> 
> This looks like a fix that should go on master?
> 
> Cheers,
> Carlos.
> 

This in fact not required due 38cc11daa43b1, 77b6f553477, and 6e8ba7fd574.
The __get_clock freq in fact is not really used in any recent kernel we
support now, so its had been dead code for some time.

> 
>> Diff:
>> ---
>>  sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
>> index 8821218..4e4c2a2 100644
>> --- a/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
>> +++ b/sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
>> @@ -59,7 +59,7 @@ __get_clock freq (void)
>>       timebase        : 33333333
>>       We search for this line and convert the number into an integer.  */
>>    int fd = __open_nocancel ("/proc/cpuinfo", O_RDONLY);
>> -  if (__glibc_likely (fd != -1))
>> +  if (__glibc_unlikely (fd == -1))
>>      return result;
>>  
>>    /* The timebase will be in the 1st 1024 bytes for systems with up
>>
> 
> 

  reply	other threads:[~2019-05-29 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190517192546.22134.qmail@sourceware.org>
2019-05-18  4:35 ` [glibc/google/grte/v5-2.27/master] Fix sense of a test in the static-linking version of ppc get_clockfreq Carlos O'Donell
2019-05-29 13:33   ` Adhemerval Zanella [this message]
2019-05-29 15:09     ` Adhemerval Zanella

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

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46c3916d-c803-d2e7-4d3c-ce01c1a9faf0@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=carlos@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=stanshebs@google.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).