1. 07 8月, 2009 1 次提交
  2. 27 4月, 2009 1 次提交
    • M
      locking: Documentation: lockdep-design.txt, fix note of state bits · 992d7ced
      Ming Lei 提交于
      From source code of get_usage_char(), the previous note is not correct,
      so fix it.
      
      static char get_usage_char(struct lock_class *class, enum lock_usage_bit bit)
      {
      	char c = '.';
      
      	if (class->usage_mask & lock_flag(bit + 2))/*LOCK_ENABLED_##STATE*/
      		c = '+';
      	if (class->usage_mask & lock_flag(bit)) {/*LOCK_USED_IN_##STATE*/
      		c = '-';
      		if (class->usage_mask & lock_flag(bit + 2))
      			c = '?';
      	}
      
      	return c;
      }
      
      note:
      
      1) The 'bit' parameter always is passed as  LOCK_USED_IN_##STATE
         or LOCK_USED_IN_##STATE_READ , from get_usage_chars().
      Signed-off-by: NMing Lei <tom.leiming@gmail.com>
      LKML-Reference: <1240585806-5744-1-git-send-email-tom.leiming@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      992d7ced
  3. 15 2月, 2009 1 次提交
  4. 12 10月, 2006 1 次提交
    • A
      [PATCH] fix lockdep-design.txt · 5fcce743
      Aneesh Kumar 提交于
      I was looking at lockdep-desing.txt and i guess i am confused with the
      changes with respect to fd7bcea3. It
      says
      
      +   '.'  acquired while irqs enabled
      +   '+'  acquired in irq context
      +   '-'  acquired in process context with irqs disabled
      +   '?'  read-acquired both with irqs enabled and in irq context
      +
      
      But the get_usage_chars() function does this for '-'
       if (class->usage_mask & LOCKF_ENABLED_HARDIRQS)
                              *c1 = '-';
      
      So i guess what would be correct would be
      '.'  acquired while irqs disabled
      '+'  acquired in irq context
      '-'  acquired with irqs enabled
      '?' read acquired in irq context with irqs enabled.
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5fcce743
  5. 04 10月, 2006 3 次提交
  6. 01 10月, 2006 1 次提交
  7. 04 7月, 2006 1 次提交