@@ -660,7 +660,7 @@ static void __init early_reserve_mem(void)
}
#ifdef CONFIG_PPC_TRANSACTIONAL_MEM
-static bool tm_disabled __initdata;
+static bool tm_cmdline_disabled __initdata;
static int __init parse_ppc_tm(char *str)
{
@@ -669,7 +669,7 @@ static int __init parse_ppc_tm(char *str)
if (kstrtobool(str, &res))
return -EINVAL;
- tm_disabled = !res;
+ tm_cmdline_disabled = !res;
return 0;
}
@@ -677,7 +677,7 @@ early_param("ppc_tm", parse_ppc_tm);
static void __init tm_init(void)
{
- if (tm_disabled) {
+ if (tm_cmdline_disabled) {
pr_info("Disabling hardware transactional memory (HTM)\n");
cur_cpu_spec->cpu_user_features2 &=
~(PPC_FEATURE2_HTM_NOSC | PPC_FEATURE2_HTM);
@@ -83,10 +83,10 @@ _GLOBAL(tm_abort)
* uint8_t cause)
*
* - Performs a full reclaim. This destroys outstanding
- * transactions and updates thread->regs.tm_ckpt_* with the
+ * transactions and updates thread->regs.ckpt_regs with the
* original checkpointed state. Note that thread->regs is
* unchanged.
- * - FP regs are written back to thread->transact_fpr before
+ * - FP regs are written back to thread->ckfp_state before
* reclaiming. These are the transactional (current) versions.
*
* Purpose is to both abort transactions of, and preserve the state of,
@@ -258,7 +258,7 @@ _GLOBAL(tm_reclaim)
beq dont_backup_vec
addi r7, r3, THREAD_CKVRSTATE
- SAVE_32VRS(0, r6, r7) /* r6 scratch, r7 transact vr state */
+ SAVE_32VRS(0, r6, r7) /* r6 scratch, r7 ckvr_state */
mfvscr v0
li r6, VRSTATE_VSCR
stvx v0, r7, r6
@@ -270,7 +270,7 @@ dont_backup_vec:
beq dont_backup_fp
addi r7, r3, THREAD_CKFPSTATE
- SAVE_32FPRS_VSRS(0, R6, R7) /* r6 scratch, r7 transact fp state */
+ SAVE_32FPRS_VSRS(0, R6, R7) /* r6 scratch, r7 ckfp_state */
mffs fr0
stfd fr0,FPSTATE_FPSCR(r7)
@@ -1681,13 +1681,13 @@ void fp_unavailable_tm(struct pt_regs *regs)
* checkpointed FP registers need to be loaded.
*/
tm_reclaim_current(TM_CAUSE_FAC_UNAV);
- /* Reclaim didn't save out any FPRs to transact_fprs. */
+ /* Reclaim didn't save out any FPRs to ckfp_state. */
/* Enable FP for the task: */
regs->msr |= (MSR_FP | current->thread.fpexc_mode);
/* This loads and recheckpoints the FP registers from
- * thread.fpr[]. They will remain in registers after the
+ * thread.ckfp_state[]. They will remain in registers after the
* checkpoint so we don't need to reload them after.
* If VMX is in use, the VRs now hold checkpointed values,
* so we don't want to load the VRs from the thread_struct.