@@ -44,7 +44,7 @@ static bool pv_sleepy_lock_sticky __read_mostly = false;
44
44
static u64 pv_sleepy_lock_interval_ns __read_mostly = 0 ;
45
45
static int pv_sleepy_lock_factor __read_mostly = 256 ;
46
46
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;
48
48
static bool pv_prod_head __read_mostly = false;
49
49
50
50
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
357
357
358
358
if (!paravirt )
359
359
return ;
360
- if (!pv_yield_propagate_owner )
360
+ if (!pv_yield_sleepy_owner )
361
361
return ;
362
362
363
363
next = READ_ONCE (node -> next );
@@ -381,7 +381,7 @@ static __always_inline bool yield_to_prev(struct qspinlock *lock, struct qnode *
381
381
if (!paravirt )
382
382
goto relax ;
383
383
384
- if (!pv_yield_propagate_owner )
384
+ if (!pv_yield_sleepy_owner )
385
385
goto yield_prev ;
386
386
387
387
/*
@@ -934,21 +934,21 @@ static int pv_yield_prev_get(void *data, u64 *val)
934
934
935
935
DEFINE_SIMPLE_ATTRIBUTE (fops_pv_yield_prev , pv_yield_prev_get , pv_yield_prev_set , "%llu\n" );
936
936
937
- static int pv_yield_propagate_owner_set (void * data , u64 val )
937
+ static int pv_yield_sleepy_owner_set (void * data , u64 val )
938
938
{
939
- pv_yield_propagate_owner = !!val ;
939
+ pv_yield_sleepy_owner = !!val ;
940
940
941
941
return 0 ;
942
942
}
943
943
944
- static int pv_yield_propagate_owner_get (void * data , u64 * val )
944
+ static int pv_yield_sleepy_owner_get (void * data , u64 * val )
945
945
{
946
- * val = pv_yield_propagate_owner ;
946
+ * val = pv_yield_sleepy_owner ;
947
947
948
948
return 0 ;
949
949
}
950
950
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" );
952
952
953
953
static int pv_prod_head_set (void * data , u64 val )
954
954
{
@@ -980,7 +980,7 @@ static __init int spinlock_debugfs_init(void)
980
980
debugfs_create_file ("qspl_pv_sleepy_lock_interval_ns" , 0600 , arch_debugfs_dir , NULL , & fops_pv_sleepy_lock_interval_ns );
981
981
debugfs_create_file ("qspl_pv_sleepy_lock_factor" , 0600 , arch_debugfs_dir , NULL , & fops_pv_sleepy_lock_factor );
982
982
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 );
984
984
debugfs_create_file ("qspl_pv_prod_head" , 0600 , arch_debugfs_dir , NULL , & fops_pv_prod_head );
985
985
}
986
986
0 commit comments