From patchwork Fri May 28 19:02:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 1485309 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=Neo+puvd; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FsDZd66Crz9sSs for ; Sat, 29 May 2021 05:02:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C11E5383D026; Fri, 28 May 2021 19:02:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C11E5383D026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1622228534; bh=BiwhmgfBUhtp/PjwiwV4sb02G8rK4NnU1KUpuZUpVLQ=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Neo+puvd4zCN1wAK7eWoR29jKmQafBf9yGYTNiivt/hEygDJz0ydMF1zJ8JOOzr0+ 3Zm9a64olbn2ji72BrZt9CwFF5ytF9p+DvZ6wAyE99j1ieq7DDqU5SYTR6odOe79B1 XsHJpYZ8VaEZUkhVbdqpz2dpk0Pkl3Y+OYd2bBUg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by sourceware.org (Postfix) with ESMTPS id 0E9583857836 for ; Fri, 28 May 2021 19:02:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0E9583857836 Received: by mail-qk1-x72d.google.com with SMTP id h20so5104405qko.11 for ; Fri, 28 May 2021 12:02:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=BiwhmgfBUhtp/PjwiwV4sb02G8rK4NnU1KUpuZUpVLQ=; b=TZ+r/aOcAl8kFloNA3l3yoAk17WkMyGXKuimVYCW9Fhrc0jm8BSmUuPLxJIg9R9uNN IomBzfCODarI69eHYSPbxFRpT6U7VzkLKsWvK15Su3UK2vJ5sCoxUxBHYKe6bJQwYcS6 YW+qZuZZI0Oor270SkTFxrY2WqWuebadNawrEpxWW99h07Y0A3PbXPMwKPSDdJU0G5hd IVNSPws3xzeS/5J7b/fv1DTaEnwa4t1Y7Bb3prtsgrWtNNSY0nGLliXw8XQUNS2OtdWS lOvNWmuW49D12udN8rOpHXTnTXGNv4ujceJCP3ru8SIrY0qcA5gCXl55dNFjBJBf62ls Q3Sw== X-Gm-Message-State: AOAM530nsyLctxvIWabKbNUkjfGYUM9H/UQYROvwM5SRzjE8DWBOeWTP potQumS5Wh/Dx6k/inStsY5ZNOEbTbFXSA== X-Google-Smtp-Source: ABdhPJzjoq+vQGt+7OhiXAlXgT6nJ/nQnRDjX92KOpENSj1aOkDIlmySZgyfyWQcxyw7JbliLzMI+w== X-Received: by 2002:a05:620a:14b9:: with SMTP id x25mr5372268qkj.460.1622228531404; Fri, 28 May 2021 12:02:11 -0700 (PDT) Received: from birita.. ([177.194.59.218]) by smtp.googlemail.com with ESMTPSA id h3sm3987361qkk.82.2021.05.28.12.02.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 12:02:11 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [COMMITTED] support: Do not build xpthread_attr_setaffinity_np for hurd Date: Fri, 28 May 2021 16:02:06 -0300 Message-Id: <20210528190206.2014040-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" It does not provide pthread_attr_setaffinity_np extension. --- support/xpthread_attr_setaffinity_np.c | 2 ++ support/xthread.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/support/xpthread_attr_setaffinity_np.c b/support/xpthread_attr_setaffinity_np.c index 5bb5b419a5..21a768c03f 100644 --- a/support/xpthread_attr_setaffinity_np.c +++ b/support/xpthread_attr_setaffinity_np.c @@ -18,6 +18,7 @@ #include +#ifdef __linux__ void xpthread_attr_setaffinity_np (pthread_attr_t *attr, size_t cpusetsize, const cpu_set_t *cpuset) @@ -26,3 +27,4 @@ xpthread_attr_setaffinity_np (pthread_attr_t *attr, pthread_attr_setaffinity_np (attr, cpusetsize, cpuset)); } +#endif diff --git a/support/xthread.h b/support/xthread.h index c0dbb6086e..a4a4ec5b1e 100644 --- a/support/xthread.h +++ b/support/xthread.h @@ -66,9 +66,11 @@ void *xpthread_join (pthread_t thr); void xpthread_once (pthread_once_t *guard, void (*func) (void)); void xpthread_attr_destroy (pthread_attr_t *attr); void xpthread_attr_init (pthread_attr_t *attr); +#ifdef __linux__ void xpthread_attr_setaffinity_np (pthread_attr_t *attr, size_t cpusetsize, const cpu_set_t *cpuset); +#endif void xpthread_attr_setdetachstate (pthread_attr_t *attr, int detachstate); void xpthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,