@@ -4058,32 +4058,32 @@ static bool scx_cgroup_enabled;
4058
4058
4059
4059
void scx_tg_init (struct task_group * tg )
4060
4060
{
4061
- tg -> scx_weight = CGROUP_WEIGHT_DFL ;
4061
+ tg -> scx . weight = CGROUP_WEIGHT_DFL ;
4062
4062
}
4063
4063
4064
4064
int scx_tg_online (struct task_group * tg )
4065
4065
{
4066
4066
struct scx_sched * sch = scx_root ;
4067
4067
int ret = 0 ;
4068
4068
4069
- WARN_ON_ONCE (tg -> scx_flags & (SCX_TG_ONLINE | SCX_TG_INITED ));
4069
+ WARN_ON_ONCE (tg -> scx . flags & (SCX_TG_ONLINE | SCX_TG_INITED ));
4070
4070
4071
4071
percpu_down_read (& scx_cgroup_rwsem );
4072
4072
4073
4073
if (scx_cgroup_enabled ) {
4074
4074
if (SCX_HAS_OP (sch , cgroup_init )) {
4075
4075
struct scx_cgroup_init_args args =
4076
- { .weight = tg -> scx_weight };
4076
+ { .weight = tg -> scx . weight };
4077
4077
4078
4078
ret = SCX_CALL_OP_RET (sch , SCX_KF_UNLOCKED , cgroup_init ,
4079
4079
NULL , tg -> css .cgroup , & args );
4080
4080
if (ret )
4081
4081
ret = ops_sanitize_err (sch , "cgroup_init" , ret );
4082
4082
}
4083
4083
if (ret == 0 )
4084
- tg -> scx_flags |= SCX_TG_ONLINE | SCX_TG_INITED ;
4084
+ tg -> scx . flags |= SCX_TG_ONLINE | SCX_TG_INITED ;
4085
4085
} else {
4086
- tg -> scx_flags |= SCX_TG_ONLINE ;
4086
+ tg -> scx . flags |= SCX_TG_ONLINE ;
4087
4087
}
4088
4088
4089
4089
percpu_up_read (& scx_cgroup_rwsem );
@@ -4094,15 +4094,15 @@ void scx_tg_offline(struct task_group *tg)
4094
4094
{
4095
4095
struct scx_sched * sch = scx_root ;
4096
4096
4097
- WARN_ON_ONCE (!(tg -> scx_flags & SCX_TG_ONLINE ));
4097
+ WARN_ON_ONCE (!(tg -> scx . flags & SCX_TG_ONLINE ));
4098
4098
4099
4099
percpu_down_read (& scx_cgroup_rwsem );
4100
4100
4101
4101
if (scx_cgroup_enabled && SCX_HAS_OP (sch , cgroup_exit ) &&
4102
- (tg -> scx_flags & SCX_TG_INITED ))
4102
+ (tg -> scx . flags & SCX_TG_INITED ))
4103
4103
SCX_CALL_OP (sch , SCX_KF_UNLOCKED , cgroup_exit , NULL ,
4104
4104
tg -> css .cgroup );
4105
- tg -> scx_flags &= ~(SCX_TG_ONLINE | SCX_TG_INITED );
4105
+ tg -> scx . flags &= ~(SCX_TG_ONLINE | SCX_TG_INITED );
4106
4106
4107
4107
percpu_up_read (& scx_cgroup_rwsem );
4108
4108
}
@@ -4211,11 +4211,11 @@ void scx_group_set_weight(struct task_group *tg, unsigned long weight)
4211
4211
percpu_down_read (& scx_cgroup_rwsem );
4212
4212
4213
4213
if (scx_cgroup_enabled && SCX_HAS_OP (sch , cgroup_set_weight ) &&
4214
- tg -> scx_weight != weight )
4214
+ tg -> scx . weight != weight )
4215
4215
SCX_CALL_OP (sch , SCX_KF_UNLOCKED , cgroup_set_weight , NULL ,
4216
4216
tg_cgrp (tg ), weight );
4217
4217
4218
- tg -> scx_weight = weight ;
4218
+ tg -> scx . weight = weight ;
4219
4219
4220
4220
percpu_up_read (& scx_cgroup_rwsem );
4221
4221
}
@@ -4366,9 +4366,9 @@ static void scx_cgroup_exit(struct scx_sched *sch)
4366
4366
css_for_each_descendant_post (css , & root_task_group .css ) {
4367
4367
struct task_group * tg = css_tg (css );
4368
4368
4369
- if (!(tg -> scx_flags & SCX_TG_INITED ))
4369
+ if (!(tg -> scx . flags & SCX_TG_INITED ))
4370
4370
continue ;
4371
- tg -> scx_flags &= ~SCX_TG_INITED ;
4371
+ tg -> scx . flags &= ~SCX_TG_INITED ;
4372
4372
4373
4373
if (!sch -> ops .cgroup_exit )
4374
4374
continue ;
@@ -4400,14 +4400,14 @@ static int scx_cgroup_init(struct scx_sched *sch)
4400
4400
rcu_read_lock ();
4401
4401
css_for_each_descendant_pre (css , & root_task_group .css ) {
4402
4402
struct task_group * tg = css_tg (css );
4403
- struct scx_cgroup_init_args args = { .weight = tg -> scx_weight };
4403
+ struct scx_cgroup_init_args args = { .weight = tg -> scx . weight };
4404
4404
4405
- if ((tg -> scx_flags &
4405
+ if ((tg -> scx . flags &
4406
4406
(SCX_TG_ONLINE | SCX_TG_INITED )) != SCX_TG_ONLINE )
4407
4407
continue ;
4408
4408
4409
4409
if (!sch -> ops .cgroup_init ) {
4410
- tg -> scx_flags |= SCX_TG_INITED ;
4410
+ tg -> scx . flags |= SCX_TG_INITED ;
4411
4411
continue ;
4412
4412
}
4413
4413
@@ -4422,7 +4422,7 @@ static int scx_cgroup_init(struct scx_sched *sch)
4422
4422
scx_error (sch , "ops.cgroup_init() failed (%d)" , ret );
4423
4423
return ret ;
4424
4424
}
4425
- tg -> scx_flags |= SCX_TG_INITED ;
4425
+ tg -> scx . flags |= SCX_TG_INITED ;
4426
4426
4427
4427
rcu_read_lock ();
4428
4428
css_put (css );
0 commit comments