@@ -53,38 +53,37 @@ static char __initdata nocb_buf[NR_CPUS * 5];
5353static void __init rcu_bootup_announce_oddness (void )
5454{
5555#ifdef CONFIG_RCU_TRACE
56- printk ( KERN_INFO "\tRCU debugfs-based tracing is enabled.\n" );
56+ pr_info ( "\tRCU debugfs-based tracing is enabled.\n" );
5757#endif
5858#if (defined(CONFIG_64BIT ) && CONFIG_RCU_FANOUT != 64 ) || (!defined(CONFIG_64BIT ) && CONFIG_RCU_FANOUT != 32 )
59- printk ( KERN_INFO "\tCONFIG_RCU_FANOUT set to non-default value of %d\n" ,
59+ pr_info ( "\tCONFIG_RCU_FANOUT set to non-default value of %d\n" ,
6060 CONFIG_RCU_FANOUT );
6161#endif
6262#ifdef CONFIG_RCU_FANOUT_EXACT
63- printk ( KERN_INFO "\tHierarchical RCU autobalancing is disabled.\n" );
63+ pr_info ( "\tHierarchical RCU autobalancing is disabled.\n" );
6464#endif
6565#ifdef CONFIG_RCU_FAST_NO_HZ
66- printk (KERN_INFO
67- "\tRCU dyntick-idle grace-period acceleration is enabled.\n" );
66+ pr_info ("\tRCU dyntick-idle grace-period acceleration is enabled.\n" );
6867#endif
6968#ifdef CONFIG_PROVE_RCU
70- printk ( KERN_INFO "\tRCU lockdep checking is enabled.\n" );
69+ pr_info ( "\tRCU lockdep checking is enabled.\n" );
7170#endif
7271#ifdef CONFIG_RCU_TORTURE_TEST_RUNNABLE
73- printk ( KERN_INFO "\tRCU torture testing starts during boot.\n" );
72+ pr_info ( "\tRCU torture testing starts during boot.\n" );
7473#endif
7574#if defined(CONFIG_TREE_PREEMPT_RCU ) && !defined(CONFIG_RCU_CPU_STALL_VERBOSE )
76- printk ( KERN_INFO "\tDump stacks of tasks blocking RCU-preempt GP.\n" );
75+ pr_info ( "\tDump stacks of tasks blocking RCU-preempt GP.\n" );
7776#endif
7877#if defined(CONFIG_RCU_CPU_STALL_INFO )
79- printk ( KERN_INFO "\tAdditional per-CPU info printed with stalls.\n" );
78+ pr_info ( "\tAdditional per-CPU info printed with stalls.\n" );
8079#endif
8180#if NUM_RCU_LVL_4 != 0
82- printk ( KERN_INFO "\tFour-level hierarchy is enabled.\n" );
81+ pr_info ( "\tFour-level hierarchy is enabled.\n" );
8382#endif
8483 if (rcu_fanout_leaf != CONFIG_RCU_FANOUT_LEAF )
85- printk ( KERN_INFO "\tExperimental boot-time adjustment of leaf fanout to %d.\n" , rcu_fanout_leaf );
84+ pr_info ( "\tExperimental boot-time adjustment of leaf fanout to %d.\n" , rcu_fanout_leaf );
8685 if (nr_cpu_ids != NR_CPUS )
87- printk ( KERN_INFO "\tRCU restricting CPUs from NR_CPUS=%d to nr_cpu_ids=%d.\n" , NR_CPUS , nr_cpu_ids );
86+ pr_info ( "\tRCU restricting CPUs from NR_CPUS=%d to nr_cpu_ids=%d.\n" , NR_CPUS , nr_cpu_ids );
8887#ifdef CONFIG_RCU_NOCB_CPU
8988#ifndef CONFIG_RCU_NOCB_CPU_NONE
9089 if (!have_rcu_nocb_mask ) {
@@ -123,7 +122,7 @@ static int rcu_preempted_readers_exp(struct rcu_node *rnp);
123122 */
124123static void __init rcu_bootup_announce (void )
125124{
126- printk ( KERN_INFO "Preemptible hierarchical RCU implementation.\n" );
125+ pr_info ( "Preemptible hierarchical RCU implementation.\n" );
127126 rcu_bootup_announce_oddness ();
128127}
129128
@@ -490,13 +489,13 @@ static void rcu_print_detail_task_stall(struct rcu_state *rsp)
490489
491490static void rcu_print_task_stall_begin (struct rcu_node * rnp )
492491{
493- printk ( KERN_ERR "\tTasks blocked on level-%d rcu_node (CPUs %d-%d):" ,
492+ pr_err ( "\tTasks blocked on level-%d rcu_node (CPUs %d-%d):" ,
494493 rnp -> level , rnp -> grplo , rnp -> grphi );
495494}
496495
497496static void rcu_print_task_stall_end (void )
498497{
499- printk ( KERN_CONT "\n" );
498+ pr_cont ( "\n" );
500499}
501500
502501#else /* #ifdef CONFIG_RCU_CPU_STALL_INFO */
@@ -526,7 +525,7 @@ static int rcu_print_task_stall(struct rcu_node *rnp)
526525 t = list_entry (rnp -> gp_tasks ,
527526 struct task_struct , rcu_node_entry );
528527 list_for_each_entry_continue (t , & rnp -> blkd_tasks , rcu_node_entry ) {
529- printk ( KERN_CONT " P%d" , t -> pid );
528+ pr_cont ( " P%d" , t -> pid );
530529 ndetected ++ ;
531530 }
532531 rcu_print_task_stall_end ();
@@ -942,7 +941,7 @@ static struct rcu_state *rcu_state = &rcu_sched_state;
942941 */
943942static void __init rcu_bootup_announce (void )
944943{
945- printk ( KERN_INFO "Hierarchical RCU implementation.\n" );
944+ pr_info ( "Hierarchical RCU implementation.\n" );
946945 rcu_bootup_announce_oddness ();
947946}
948947
@@ -1883,7 +1882,7 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu)
18831882/* Initiate the stall-info list. */
18841883static void print_cpu_stall_info_begin (void )
18851884{
1886- printk ( KERN_CONT "\n" );
1885+ pr_cont ( "\n" );
18871886}
18881887
18891888/*
@@ -1914,7 +1913,7 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu)
19141913 ticks_value = rsp -> gpnum - rdp -> gpnum ;
19151914 }
19161915 print_cpu_stall_fast_no_hz (fast_no_hz , cpu );
1917- printk ( KERN_ERR "\t%d: (%lu %s) idle=%03x/%llx/%d softirq=%u/%u %s\n" ,
1916+ pr_err ( "\t%d: (%lu %s) idle=%03x/%llx/%d softirq=%u/%u %s\n" ,
19181917 cpu , ticks_value , ticks_title ,
19191918 atomic_read (& rdtp -> dynticks ) & 0xfff ,
19201919 rdtp -> dynticks_nesting , rdtp -> dynticks_nmi_nesting ,
@@ -1925,7 +1924,7 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu)
19251924/* Terminate the stall-info list. */
19261925static void print_cpu_stall_info_end (void )
19271926{
1928- printk ( KERN_ERR "\t" );
1927+ pr_err ( "\t" );
19291928}
19301929
19311930/* Zero ->ticks_this_gp for all flavors of RCU. */
@@ -1948,17 +1947,17 @@ static void increment_cpu_stall_ticks(void)
19481947
19491948static void print_cpu_stall_info_begin (void )
19501949{
1951- printk ( KERN_CONT " {" );
1950+ pr_cont ( " {" );
19521951}
19531952
19541953static void print_cpu_stall_info (struct rcu_state * rsp , int cpu )
19551954{
1956- printk ( KERN_CONT " %d" , cpu );
1955+ pr_cont ( " %d" , cpu );
19571956}
19581957
19591958static void print_cpu_stall_info_end (void )
19601959{
1961- printk ( KERN_CONT "} " );
1960+ pr_cont ( "} " );
19621961}
19631962
19641963static void zero_cpu_stall_ticks (struct rcu_data * rdp )
0 commit comments