Skip to content

Commit b629b54

Browse files
npigginmpe
authored andcommitted
powerpc/qspinlock: Rename yield_propagate_owner tunable
Rename yield_propagate_owner to yield_sleepy_owner, which better describes what it does (what, not how). Signed-off-by: Nicholas Piggin <[email protected]> Tested-by: Shrikanth Hegde <[email protected]> Reviewed-by: "Nysal Jan K.A" <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent 1e6d5f7 commit b629b54

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

arch/powerpc/lib/qspinlock.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static bool pv_sleepy_lock_sticky __read_mostly = false;
4444
static u64 pv_sleepy_lock_interval_ns __read_mostly = 0;
4545
static int pv_sleepy_lock_factor __read_mostly = 256;
4646
static bool pv_yield_prev __read_mostly = true;
47-
static bool pv_yield_propagate_owner __read_mostly = true;
47+
static bool pv_yield_sleepy_owner __read_mostly = true;
4848
static bool pv_prod_head __read_mostly = false;
4949

5050
static DEFINE_PER_CPU_ALIGNED(struct qnodes, qnodes);
@@ -357,7 +357,7 @@ static __always_inline void propagate_sleepy(struct qnode *node, u32 val, bool p
357357

358358
if (!paravirt)
359359
return;
360-
if (!pv_yield_propagate_owner)
360+
if (!pv_yield_sleepy_owner)
361361
return;
362362

363363
next = READ_ONCE(node->next);
@@ -381,7 +381,7 @@ static __always_inline bool yield_to_prev(struct qspinlock *lock, struct qnode *
381381
if (!paravirt)
382382
goto relax;
383383

384-
if (!pv_yield_propagate_owner)
384+
if (!pv_yield_sleepy_owner)
385385
goto yield_prev;
386386

387387
/*
@@ -934,21 +934,21 @@ static int pv_yield_prev_get(void *data, u64 *val)
934934

935935
DEFINE_SIMPLE_ATTRIBUTE(fops_pv_yield_prev, pv_yield_prev_get, pv_yield_prev_set, "%llu\n");
936936

937-
static int pv_yield_propagate_owner_set(void *data, u64 val)
937+
static int pv_yield_sleepy_owner_set(void *data, u64 val)
938938
{
939-
pv_yield_propagate_owner = !!val;
939+
pv_yield_sleepy_owner = !!val;
940940

941941
return 0;
942942
}
943943

944-
static int pv_yield_propagate_owner_get(void *data, u64 *val)
944+
static int pv_yield_sleepy_owner_get(void *data, u64 *val)
945945
{
946-
*val = pv_yield_propagate_owner;
946+
*val = pv_yield_sleepy_owner;
947947

948948
return 0;
949949
}
950950

951-
DEFINE_SIMPLE_ATTRIBUTE(fops_pv_yield_propagate_owner, pv_yield_propagate_owner_get, pv_yield_propagate_owner_set, "%llu\n");
951+
DEFINE_SIMPLE_ATTRIBUTE(fops_pv_yield_sleepy_owner, pv_yield_sleepy_owner_get, pv_yield_sleepy_owner_set, "%llu\n");
952952

953953
static int pv_prod_head_set(void *data, u64 val)
954954
{
@@ -980,7 +980,7 @@ static __init int spinlock_debugfs_init(void)
980980
debugfs_create_file("qspl_pv_sleepy_lock_interval_ns", 0600, arch_debugfs_dir, NULL, &fops_pv_sleepy_lock_interval_ns);
981981
debugfs_create_file("qspl_pv_sleepy_lock_factor", 0600, arch_debugfs_dir, NULL, &fops_pv_sleepy_lock_factor);
982982
debugfs_create_file("qspl_pv_yield_prev", 0600, arch_debugfs_dir, NULL, &fops_pv_yield_prev);
983-
debugfs_create_file("qspl_pv_yield_propagate_owner", 0600, arch_debugfs_dir, NULL, &fops_pv_yield_propagate_owner);
983+
debugfs_create_file("qspl_pv_yield_sleepy_owner", 0600, arch_debugfs_dir, NULL, &fops_pv_yield_sleepy_owner);
984984
debugfs_create_file("qspl_pv_prod_head", 0600, arch_debugfs_dir, NULL, &fops_pv_prod_head);
985985
}
986986

0 commit comments

Comments
 (0)