From patchwork Thu Jun 22 16:22:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 779611 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wtn6T1rVvz9s9Y for ; Fri, 23 Jun 2017 02:27:13 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wtn6T14zrzDr93 for ; Fri, 23 Jun 2017 02:27:13 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wtn582ZMWzDr6F for ; Fri, 23 Jun 2017 02:26:04 +1000 (AEST) Received: from pasglop.austin.ibm.com (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id v5MGMaCe024844; Thu, 22 Jun 2017 11:25:23 -0500 From: Benjamin Herrenschmidt To: skiboot@lists.ozlabs.org Date: Thu, 22 Jun 2017 11:22:21 -0500 Message-Id: <20170622162225.26344-20-benh@kernel.crashing.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170622162225.26344-1-benh@kernel.crashing.org> References: <20170622162225.26344-1-benh@kernel.crashing.org> Subject: [Skiboot] [PATCH 20/24] Rename cleanup_tlb() to cleanup_local_tlb() X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" It uses tlbiel and only cleans up the TLB of the calling core Signed-off-by: Benjamin Herrenschmidt --- asm/misc.S | 4 ++-- core/fast-reboot.c | 2 +- include/skiboot.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asm/misc.S b/asm/misc.S index 8f8696f..4c9eee9 100644 --- a/asm/misc.S +++ b/asm/misc.S @@ -51,8 +51,8 @@ _mcount: b __mcount_stack_check #endif - .global cleanup_tlb -cleanup_tlb: + .global cleanup_local_tlb +cleanup_local_tlb: /* Clean the TLB */ li %r3,512 mtctr %r3 diff --git a/core/fast-reboot.c b/core/fast-reboot.c index b99eb99..884441d 100644 --- a/core/fast-reboot.c +++ b/core/fast-reboot.c @@ -392,7 +392,7 @@ static void cleanup_cpu_state(void) chiptod_wakeup_resync(); /* The TLB surely contains garbage */ - cleanup_tlb(); + cleanup_local_tlb(); } /* Per-thread additional cleanup */ diff --git a/include/skiboot.h b/include/skiboot.h index 394ce93..87d8503 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -203,7 +203,7 @@ extern void disable_fast_reboot(const char *reason); extern void fast_reboot(void); extern void __noreturn __secondary_cpu_entry(void); extern void __noreturn load_and_boot_kernel(bool is_reboot); -extern void cleanup_tlb(void); +extern void cleanup_local_tlb(void); extern void init_shared_sprs(void); extern void init_replicated_sprs(void); extern bool start_preload_kernel(void);