Commit db5f6f8 1 parent 0370dc3 commit db5f6f8 Copy full SHA for db5f6f8
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ struct bp_cpuinfo {
46
46
};
47
47
48
48
static DEFINE_PER_CPU (struct bp_cpuinfo , bp_cpuinfo [TYPE_MAX ]) ;
49
- static int nr_slots [TYPE_MAX ];
49
+ static int nr_slots [TYPE_MAX ] __ro_after_init ;
50
50
51
51
static struct bp_cpuinfo * get_bp_info (int cpu , enum bp_type_idx type )
52
52
{
@@ -62,7 +62,7 @@ static const struct rhashtable_params task_bps_ht_params = {
62
62
.automatic_shrinking = true,
63
63
};
64
64
65
- static int constraints_initialized ;
65
+ static bool constraints_initialized __ro_after_init ;
66
66
67
67
/* Gather the number of total pinned and un-pinned bp in a cpuset */
68
68
struct bp_busy_slots {
@@ -739,7 +739,7 @@ int __init init_hw_breakpoint(void)
739
739
if (ret )
740
740
goto err ;
741
741
742
- constraints_initialized = 1 ;
742
+ constraints_initialized = true ;
743
743
744
744
perf_pmu_register (& perf_breakpoint , "breakpoint" , PERF_TYPE_BREAKPOINT );
745
745
You can’t perform that action at this time.
0 commit comments