summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/x86/mpx-debug.h
blob: 9230981f2e12a0905e675da931938fef0ad8abc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _MPX_DEBUG_H
#define _MPX_DEBUG_H

#ifndef DEBUG_LEVEL
#define DEBUG_LEVEL 0
#endif
#define dprintf_level(level, args...) do { if(level <= DEBUG_LEVEL) printf(args); } while(0)
#define dprintf1(args...) dprintf_level(1, args)
#define dprintf2(args...) dprintf_level(2, args)
#define dprintf3(args...) dprintf_level(3, args)
#define dprintf4(args...) dprintf_level(4, args)
#define dprintf5(args...) dprintf_level(5, args)

#endif /* _MPX_DEBUG_H */
/commit/arch/um/drivers/random.c?id=aab944606f9490f158d3b28f6c44a33c4701a5b3'>aab944606f9490f158d3b28f6c44a33c4701a5b3 (patch) tree2485de143ffec254a1785db3ee85a2260e689672 /arch/um/drivers/random.c parent71ba8d44da550089bda22b2a921757613b5e0b4e (diff)
um: remove IRQF_SAMPLE_RANDOM which is now a no-op
With the changes in the random tree, IRQF_SAMPLE_RANDOM is now a no-op; interrupt randomness is now collected unconditionally in a very low-overhead fashion; see commit 775f4b297b. The IRQF_SAMPLE_RANDOM flag was scheduled to be removed in 2009 on the feature-removal-schedule, so this patch is preparation for the final removal of this flag. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/drivers/random.c')