From: Carlos O'Donell <carlos@redhat.com>
To: Stan Shebs <stanshebs@google.com>,
GNU C Library <libc-alpha@sourceware.org>,
Adhemerval Zanella <adhemerval.zanella@linaro.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: Fri, 17 May 2019 23:35:22 -0500 [thread overview]
Message-ID: <0346f018-0ed7-451a-31b7-dedec56be152@redhat.com> (raw)
In-Reply-To: <20190517192546.22134.qmail@sourceware.org>
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.
> 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_clockfreq (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
>
--
Cheers,
Carlos.
next parent reply other threads:[~2019-05-18 4:35 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 ` Carlos O'Donell [this message]
2019-05-29 13:33 ` [glibc/google/grte/v5-2.27/master] Fix sense of a test in the static-linking version of ppc get_clockfreq Adhemerval Zanella
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=0346f018-0ed7-451a-31b7-dedec56be152@redhat.com \
--to=carlos@redhat.com \
--cc=adhemerval.zanella@linaro.org \
--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).