  ,     ,  -
   .

     

       ( 
  ),     -
. ,          .  
      printk (),    
        .

        -
.         ,  -
 ,   ,    
 .     ,   -
     ,      .

static unsigned long prev_jiffy = jiffies; /*   */

if (time_after(jiffies, prev_jiffy + 2*HZ)) {

prev_jiffy = jiffies;

printk(KERN_ERR "blah blah blah\n");

}

       ,     
.        
 .     ,  ,  -
  .

   ,      -
.         -
  .      ,  - -
.      ,   . 
   ,  ,   ,    ,
  .       
,     .

static unsigned long limit == 0;

if (limit < 5) {

limit++;

printk(KERN__ERR "blah blah blah\n");

}

        .
      .

       (static)  -
     ,  .   
     .

        SMP,  ,  
          -
    . ,  ,     , -
    ?

                                                                   387