Skip to content

Commit

Permalink
Rename cleanup_tlb() to cleanup_local_tlb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ozbenh authored and stewartsmith committed Jun 26, 2017
1 parent c09788f commit 2c44b08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asm/misc.S
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/fast-reboot.c
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion include/skiboot.h
Expand Up @@ -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);
Expand Down

0 comments on commit 2c44b08

Please sign in to comment.