Skip to content

Commit e6339d3

Browse files
ingomolnarpaulmckrcu
authored andcommitted
rcu: Remove __read_mostly annotations from rcu_scheduler_active externs
Remove the __read_mostly attributes from the rcu_scheduler_active extern declarations, because these attributes are ignored for prototypes and we'd have to include the full <linux/cache.h> header to gain this functionally pointless attribute defined. Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 58d4292 commit e6339d3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/linux/rcupdate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static inline int rcu_preempt_depth(void)
8484

8585
/* Internal to kernel */
8686
void rcu_init(void);
87-
extern int rcu_scheduler_active __read_mostly;
87+
extern int rcu_scheduler_active;
8888
void rcu_sched_clock_irq(int user);
8989
void rcu_report_dead(unsigned int cpu);
9090
void rcutree_migrate_callbacks(int cpu);

include/linux/rcutree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline void rcu_irq_exit_check_preempt(void) { }
6262
void exit_rcu(void);
6363

6464
void rcu_scheduler_starting(void);
65-
extern int rcu_scheduler_active __read_mostly;
65+
extern int rcu_scheduler_active;
6666
void rcu_end_inkernel_boot(void);
6767
bool rcu_inkernel_boot_has_ended(void);
6868
bool rcu_is_watching(void);

0 commit comments

Comments
 (0)