diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-02 07:45:55 -0400 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-04-02 07:45:55 -0400 |
commit | 9f31252cb61d5bc641cdef8a069a2ca5a77855f2 (patch) | |
tree | b341ce067a5620a4a9650429ce64262888cd43a2 /kernel | |
parent | fda8bd78a15950b9b01a1c1477a9095cb08c27c1 (diff) |
BUG_ON() Conversion in kernel/signal.c
this changes if() BUG(); constructs to BUG_ON() which is
cleaner, contains unlikely() and can better optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/timer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 6b812c04737b..c3a874f1393c 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1479,8 +1479,7 @@ register_time_interpolator(struct time_interpolator *ti) | |||
1479 | unsigned long flags; | 1479 | unsigned long flags; |
1480 | 1480 | ||
1481 | /* Sanity check */ | 1481 | /* Sanity check */ |
1482 | if (ti->frequency == 0 || ti->mask == 0) | 1482 | BUG_ON(ti->frequency == 0 || ti->mask == 0); |
1483 | BUG(); | ||
1484 | 1483 | ||
1485 | ti->nsec_per_cyc = ((u64)NSEC_PER_SEC << ti->shift) / ti->frequency; | 1484 | ti->nsec_per_cyc = ((u64)NSEC_PER_SEC << ti->shift) / ti->frequency; |
1486 | spin_lock(&time_interpolator_lock); | 1485 | spin_lock(&time_interpolator_lock); |