From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 778911F463 for ; Wed, 18 Dec 2019 14:58:21 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=E4eEP9pMKGnHk2t4 2I9Xnj/tiWEGiWjkWNK9jJQLU6XH9vp3gqkqTYY0FVpQPDfBU1C2rZ+dQWBYv1cG 0ywdZeQSjGG8cAoEnxidBhfOwB4dmbnBDZ2ltn389vNa2BZF3RCcDUFDJaI5iYdJ omP7MWsM9UOZcyP4YMg1bBR4AjY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=/hAItJV4ALnJHOS54pSvYC v0PBY=; b=SmfadK3h98wq8djPRXOh5ALS2tekDXrfC1YzZp5BCK7FCKD/52f5sE /GHlbKFjHzlwUUfHBKH4/LoXXKaC+dMHec7PNwy36ReBTiPV6YZmf4teJejOw+Nj wokGV0eZSChpIOe+d7/LA7LD0M+/K+j6rXaVXkuu/4lwRpl6i/L+o= Received: (qmail 39068 invoked by alias); 18 Dec 2019 14:58:19 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 39058 invoked by uid 89); 18 Dec 2019 14:58:19 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-pg1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nPfnuGCj9otqRsodGz1nIcqvKuBAqcmkxN5GiCJtWtM=; b=iO/BYR9qVP+HfdaBpB8h4xz488TM8yLXv7cy23fuS3m8RoDL1m5N5xAdrxbzQjrvme Fn+I2FfTJVNBcwWMHi5eHLGFAQ9kwgsuXFfW2Oo0dmxBsoc/pCjNuH5C5fW0TWfASbFw D1qyja2U09hoSzY1IK2bF7qpupDFJPdyj4q93ncIOiMXu+24Bgvj5wp6/suzZ5yIh29O 3A49qj7gU87CZBo1ZLHWcDzenat5MsLiI6uEA1n/nFatYhoO9tR/kLXMzVSQByexWD+6 nl4toTJSx05/kVB5/rwlD4E68O0hudyIuHipNWcxsS5sflIVwZ8APDmWZH4+XpupWtsD P+sA== Subject: Re: [PATCH 11/16] linux: Optimize fallback 32-bit clock_gettime To: Andreas Schwab Cc: libc-alpha@sourceware.org References: <20191217214728.2886-1-adhemerval.zanella@linaro.org> <20191217214728.2886-11-adhemerval.zanella@linaro.org> From: Adhemerval Zanella Message-ID: Date: Wed, 18 Dec 2019 11:58:13 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 18/12/2019 05:53, Andreas Schwab wrote: > On Dez 17 2019, Adhemerval Zanella wrote: > >> diff --git a/sysdeps/unix/sysv/linux/clock_gettime.c b/sysdeps/unix/sysv/linux/clock_gettime.c >> index 9be1f779e3..2a8ad0acc5 100644 >> --- a/sysdeps/unix/sysv/linux/clock_gettime.c >> +++ b/sysdeps/unix/sysv/linux/clock_gettime.c >> @@ -43,13 +43,21 @@ __clock_gettime64 (clockid_t clock_id, struct __timespec64 *tp) >> int r; >> /* Old 32-bit ABI with possible 64-bit time_t support. */ >> # ifdef __NR_clock_gettime64 >> + /* Avoid issue a __NR_clock_gettime64 syscall on kernels that do not >> + support 64-bit time_t. */ >> + static int time64_support = 1; >> + if (atomic_load_relaxed (&time64_support) == 1) > > Just != 0 should be enough. > > Andreas. Ack.