diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-04-04 08:41:29 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-04-04 08:41:29 -0400 |
| commit | c16226a1c75042bfdc50bd2921d5919f6267ba51 (patch) | |
| tree | f7f6081aab45d598fa44b9e588722ed38c299b8e /kernel | |
| parent | af64371ada9452632c349563d688d30d94e918ba (diff) | |
| parent | 6246b6128bbe34d0752f119cf7c5111c85fe481d (diff) | |
Merge branch 'master'
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/power/Kconfig | 2 | ||||
| -rw-r--r-- | kernel/printk.c | 6 | ||||
| -rw-r--r-- | kernel/ptrace.c | 3 | ||||
| -rw-r--r-- | kernel/signal.c | 6 | ||||
| -rw-r--r-- | kernel/time.c | 8 | ||||
| -rw-r--r-- | kernel/timer.c | 3 |
6 files changed, 11 insertions, 17 deletions
diff --git a/kernel/power/Kconfig b/kernel/power/Kconfig index 9fd8d4f03595..ce0dfb8f4a4e 100644 --- a/kernel/power/Kconfig +++ b/kernel/power/Kconfig | |||
| @@ -41,7 +41,7 @@ config SOFTWARE_SUSPEND | |||
| 41 | depends on PM && SWAP && (X86 && (!SMP || SUSPEND_SMP)) || ((FRV || PPC32) && !SMP) | 41 | depends on PM && SWAP && (X86 && (!SMP || SUSPEND_SMP)) || ((FRV || PPC32) && !SMP) |
| 42 | ---help--- | 42 | ---help--- |
| 43 | Enable the possibility of suspending the machine. | 43 | Enable the possibility of suspending the machine. |
| 44 | It doesn't need APM. | 44 | It doesn't need ACPI or APM. |
| 45 | You may suspend your machine by 'swsusp' or 'shutdown -z <time>' | 45 | You may suspend your machine by 'swsusp' or 'shutdown -z <time>' |
| 46 | (patch for sysvinit needed). | 46 | (patch for sysvinit needed). |
| 47 | 47 | ||
diff --git a/kernel/printk.c b/kernel/printk.c index 8cc19431e74b..c056f3324432 100644 --- a/kernel/printk.c +++ b/kernel/printk.c | |||
| @@ -360,8 +360,7 @@ static void call_console_drivers(unsigned long start, unsigned long end) | |||
| 360 | unsigned long cur_index, start_print; | 360 | unsigned long cur_index, start_print; |
| 361 | static int msg_level = -1; | 361 | static int msg_level = -1; |
| 362 | 362 | ||
| 363 | if (((long)(start - end)) > 0) | 363 | BUG_ON(((long)(start - end)) > 0); |
| 364 | BUG(); | ||
| 365 | 364 | ||
| 366 | cur_index = start; | 365 | cur_index = start; |
| 367 | start_print = start; | 366 | start_print = start; |
| @@ -708,8 +707,7 @@ int __init add_preferred_console(char *name, int idx, char *options) | |||
| 708 | */ | 707 | */ |
| 709 | void acquire_console_sem(void) | 708 | void acquire_console_sem(void) |
| 710 | { | 709 | { |
| 711 | if (in_interrupt()) | 710 | BUG_ON(in_interrupt()); |
| 712 | BUG(); | ||
| 713 | down(&console_sem); | 711 | down(&console_sem); |
| 714 | console_locked = 1; | 712 | console_locked = 1; |
| 715 | console_may_schedule = 1; | 713 | console_may_schedule = 1; |
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 86a7f6c60cb2..0eeb7e66722c 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
| @@ -30,8 +30,7 @@ | |||
| 30 | */ | 30 | */ |
| 31 | void __ptrace_link(task_t *child, task_t *new_parent) | 31 | void __ptrace_link(task_t *child, task_t *new_parent) |
| 32 | { | 32 | { |
| 33 | if (!list_empty(&child->ptrace_list)) | 33 | BUG_ON(!list_empty(&child->ptrace_list)); |
| 34 | BUG(); | ||
| 35 | if (child->parent == new_parent) | 34 | if (child->parent == new_parent) |
| 36 | return; | 35 | return; |
| 37 | list_add(&child->ptrace_list, &child->parent->ptrace_children); | 36 | list_add(&child->ptrace_list, &child->parent->ptrace_children); |
diff --git a/kernel/signal.c b/kernel/signal.c index 92025b108791..5ccaac505e8d 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
| @@ -769,8 +769,7 @@ specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t) | |||
| 769 | { | 769 | { |
| 770 | int ret = 0; | 770 | int ret = 0; |
| 771 | 771 | ||
| 772 | if (!irqs_disabled()) | 772 | BUG_ON(!irqs_disabled()); |
| 773 | BUG(); | ||
| 774 | assert_spin_locked(&t->sighand->siglock); | 773 | assert_spin_locked(&t->sighand->siglock); |
| 775 | 774 | ||
| 776 | /* Short-circuit ignored signals. */ | 775 | /* Short-circuit ignored signals. */ |
| @@ -1384,8 +1383,7 @@ send_group_sigqueue(int sig, struct sigqueue *q, struct task_struct *p) | |||
| 1384 | * the overrun count. Other uses should not try to | 1383 | * the overrun count. Other uses should not try to |
| 1385 | * send the signal multiple times. | 1384 | * send the signal multiple times. |
| 1386 | */ | 1385 | */ |
| 1387 | if (q->info.si_code != SI_TIMER) | 1386 | BUG_ON(q->info.si_code != SI_TIMER); |
| 1388 | BUG(); | ||
| 1389 | q->info.si_overrun++; | 1387 | q->info.si_overrun++; |
| 1390 | goto out; | 1388 | goto out; |
| 1391 | } | 1389 | } |
diff --git a/kernel/time.c b/kernel/time.c index ff8e7019c4c4..b00ddc71cedb 100644 --- a/kernel/time.c +++ b/kernel/time.c | |||
| @@ -410,7 +410,7 @@ EXPORT_SYMBOL(current_kernel_time); | |||
| 410 | * current_fs_time - Return FS time | 410 | * current_fs_time - Return FS time |
| 411 | * @sb: Superblock. | 411 | * @sb: Superblock. |
| 412 | * | 412 | * |
| 413 | * Return the current time truncated to the time granuality supported by | 413 | * Return the current time truncated to the time granularity supported by |
| 414 | * the fs. | 414 | * the fs. |
| 415 | */ | 415 | */ |
| 416 | struct timespec current_fs_time(struct super_block *sb) | 416 | struct timespec current_fs_time(struct super_block *sb) |
| @@ -421,11 +421,11 @@ struct timespec current_fs_time(struct super_block *sb) | |||
| 421 | EXPORT_SYMBOL(current_fs_time); | 421 | EXPORT_SYMBOL(current_fs_time); |
| 422 | 422 | ||
| 423 | /** | 423 | /** |
| 424 | * timespec_trunc - Truncate timespec to a granuality | 424 | * timespec_trunc - Truncate timespec to a granularity |
| 425 | * @t: Timespec | 425 | * @t: Timespec |
| 426 | * @gran: Granuality in ns. | 426 | * @gran: Granularity in ns. |
| 427 | * | 427 | * |
| 428 | * Truncate a timespec to a granuality. gran must be smaller than a second. | 428 | * Truncate a timespec to a granularity. gran must be smaller than a second. |
| 429 | * Always rounds down. | 429 | * Always rounds down. |
| 430 | * | 430 | * |
| 431 | * This function should be only used for timestamps returned by | 431 | * This function should be only used for timestamps returned by |
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); |
