~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to kernel/panic.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
         * Can't trust the integrity of the kernel anymore.
238
238
         * We don't call directly debug_locks_off() because the issue
239
239
         * is not necessarily serious enough to set oops_in_progress to 1
240
 
         * Also we want to keep up lockdep for staging development and
241
 
         * post-warning case.
 
240
         * Also we want to keep up lockdep for staging/out-of-tree
 
241
         * development and post-warning case.
242
242
         */
243
 
        if (flag != TAINT_CRAP && flag != TAINT_WARN && __debug_locks_off())
244
 
                printk(KERN_WARNING "Disabling lock debugging due to kernel taint\n");
 
243
        switch (flag) {
 
244
        case TAINT_CRAP:
 
245
        case TAINT_OOT_MODULE:
 
246
        case TAINT_WARN:
 
247
        case TAINT_FIRMWARE_WORKAROUND:
 
248
                break;
 
249
 
 
250
        default:
 
251
                if (__debug_locks_off())
 
252
                        printk(KERN_WARNING "Disabling lock debugging due to kernel taint\n");
 
253
        }
245
254
 
246
255
        set_bit(flag, &tainted_mask);
247
256
}