aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-06-24 14:17:24 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-26 14:28:58 +1000
commit2c44b08555be662bc993401412317db253385d4a (patch)
tree1c4147c6e3e39ef3c0011f4097ba2677b47b66a8
parentc09788ff6a5f0e7170c569d55d85e88e25529034 (diff)
downloadskiboot-2c44b08555be662bc993401412317db253385d4a.zip
skiboot-2c44b08555be662bc993401412317db253385d4a.tar.gz
skiboot-2c44b08555be662bc993401412317db253385d4a.tar.bz2
Rename cleanup_tlb() to cleanup_local_tlb()
It uses tlbiel and only cleans up the TLB of the calling core Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r--asm/misc.S4
-rw-r--r--core/fast-reboot.c2
-rw-r--r--include/skiboot.h2
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);