Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1625313ybm; Sat, 30 May 2020 15:14:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY0CM0Xe1CXKouqoEdSyQshOww7KPrXJJgnIni53fa0iFcWSS/Bf9P2tno8Umw0n4Yg8Md X-Received: by 2002:a17:906:57d3:: with SMTP id u19mr13669171ejr.401.1590876898935; Sat, 30 May 2020 15:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590876898; cv=none; d=google.com; s=arc-20160816; b=uJwLK/aM39EnqU/x3d/g3J6L3H8BxrPe5K5o1K3ekGl+kmQGcZP23nIIqJ9KI495Tc XaWoq2OCtlI/LgK8MZr5/Wn0h3CoQI0xFMOTIcWBihrLYWRWBAzdqSwSspElDZ0J+iIW xOCK5LKJG94cV05V90ZTQ+NPfguxFroxU01wQmFfz8wBsHVOGsuAyZTotZa5nWLQCgGz ui/0vM3eUBtHs5qrCNOW581V3MvBJey+AToW8LEeK5D6tgsHVQ4AUKa2gHcwp/CmbV94 Yupk6Rod7oSh/WuhhgEeUuGKjQonPBDvpjbpZNARQvbmFiVE0tsW6nPOQga3s0Xy3n80 2mpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KsYtJJfLF/jVVqg18d3dXBYpXuPmMyrAj2tgLgEg7HI=; b=rg0Y6PNNszafI6qVsB4oYW4hz0Dy0FAQ8QPyzWUEzFbZbVGZ9Hp71PiIxF8fsUp5yz YRXg7/mhW3hTcKWVbMSJ6175fw+TmEcqQbV8ApNgWnRuedNGsy69vLKp/cmN8ByKNBZj cFWuUm+3nNj8czL7cD/p4l6Oc9qhNTrDosVwkxUez6nLntN1dzt5/Mvxums/900yOAs7 drrJDv8brUmTpgS76hQNWXnDN9FN/aKdAamEWaT9wKGub+dpaHaRvswlrH+LGepjqDr8 A7wqBOYiy2/aX/mM3EXWXU2WyO4Z1xjp5vvGEkUU8/GxcLEYsuaELVvacxhbi3npeZTo 0Ksg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZqOFjwRc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh8si8127025edb.587.2020.05.30.15.14.36; Sat, 30 May 2020 15:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZqOFjwRc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729472AbgE3WL6 (ORCPT + 99 others); Sat, 30 May 2020 18:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729456AbgE3WLv (ORCPT ); Sat, 30 May 2020 18:11:51 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA85C008630 for ; Sat, 30 May 2020 15:11:50 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id t8so5407956ilm.7 for ; Sat, 30 May 2020 15:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KsYtJJfLF/jVVqg18d3dXBYpXuPmMyrAj2tgLgEg7HI=; b=ZqOFjwRcgQNsxJzgnPTj8UaEb1Mcu8MzhFIVYULpvnAYE3iyd4GKe69IErHoKsJfKW BUYmwmgHfacxzWGKPI5lI0wCm1ADTHEkogiRXwfJtmq5yUpw2ZQdEdydMoa9w58arUMD zy+LFJcUNiZYVzBt9wWVEpxmDjJdQd52h6bRUxA1ixC2DAJdVXBfkYYsta3yscTkfJrO LKqJvfG7FjAvJkJCxN2k3Uyv2O89e7/dqRyZ54XRD5wY9R7onDmpjtk3PUMx9Wz1307Q VAhbaSQcI9oWwy4hETO3j93O4M8Mvu3ZMKt354KDutO9/k0My5sxOTPFQ7bTNE7uZkHK Yotg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KsYtJJfLF/jVVqg18d3dXBYpXuPmMyrAj2tgLgEg7HI=; b=h5SlocVpdva5whzT2qiiTgbdcQs9QDvE5lQBetXGIiCO4xN+7aHB+SlxnacM+jMudf TIOHWteCDVrav5oFnNyPadbCRspiLkseO3WBY5Eil/NkKIVh/bmNqr1iurQ6QE+O+14c MVrZhfuDG6wBSUfmttjgHostXAKfRLbP7hHcMZbJtLSf5v4N4gm4iXvLszL5jhVkBqkF 2KuatqoqYBTM+7D33iGK+JaHi8VH6YUGXGA56Amwz3y723aVgJcHX6U8+31gXz/5ZjFw woc0nDyz78IHRJRHN9FKqXsWaRQqiFNpXVj4R1qyw8qpYmZnFu77wz3aoeZEhQ1hhmum Q95A== X-Gm-Message-State: AOAM5338iY92JkaoOQuTkk1kB1VF3wuLs7R20iJMKmwYqyA/zkTLqimG ckvqxzdxzyIL7XLP5Qy4NUP7hQL9Wg== X-Received: by 2002:a05:6e02:11a3:: with SMTP id 3mr14353831ilj.84.1590876709416; Sat, 30 May 2020 15:11:49 -0700 (PDT) Received: from localhost.localdomain (174-084-153-250.res.spectrum.com. [174.84.153.250]) by smtp.gmail.com with ESMTPSA id w78sm2735698ilk.14.2020.05.30.15.11.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 May 2020 15:11:49 -0700 (PDT) From: Brian Gerst To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Nick Desaulniers , Brian Gerst Subject: [PATCH v2 10/10] x86/percpu: Remove unused PER_CPU() macro Date: Sat, 30 May 2020 18:11:27 -0400 Message-Id: <20200530221127.459704-11-brgerst@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200530221127.459704-1-brgerst@gmail.com> References: <20200530221127.459704-1-brgerst@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Also remove now unused __percpu_mov_op. Signed-off-by: Brian Gerst --- arch/x86/include/asm/percpu.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index cf2b9c2a241e..a3c33b79fb86 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -4,33 +4,15 @@ #ifdef CONFIG_X86_64 #define __percpu_seg gs -#define __percpu_mov_op movq #else #define __percpu_seg fs -#define __percpu_mov_op movl #endif #ifdef __ASSEMBLY__ -/* - * PER_CPU finds an address of a per-cpu variable. - * - * Args: - * var - variable name - * reg - 32bit register - * - * The resulting address is stored in the "reg" argument. - * - * Example: - * PER_CPU(cpu_gdt_descr, %ebx) - */ #ifdef CONFIG_SMP -#define PER_CPU(var, reg) \ - __percpu_mov_op %__percpu_seg:this_cpu_off, reg; \ - lea var(reg), reg #define PER_CPU_VAR(var) %__percpu_seg:var #else /* ! SMP */ -#define PER_CPU(var, reg) __percpu_mov_op $var, reg #define PER_CPU_VAR(var) var #endif /* SMP */ -- 2.25.4