Skip to content

Commit

Permalink
x86: BUG to BUG_ON changes
Browse files Browse the repository at this point in the history
Impact: cleanup

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
LKML-Reference: <1236661850-8237-8-git-send-email-stoyboyker@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Stoyan Gaydarov authored and Ingo Molnar committed Mar 10, 2009
1 parent 467c88f commit 8c5dfd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions arch/x86/kernel/cpu/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,7 @@ void __cpuinit cpu_init(void)

atomic_inc(&init_mm.mm_count);
me->active_mm = &init_mm;
if (me->mm)
BUG();
BUG_ON(me->mm);
enter_lazy_tlb(&init_mm, me);

load_sp0(t, &current->thread);
Expand Down Expand Up @@ -1145,8 +1144,7 @@ void __cpuinit cpu_init(void)
*/
atomic_inc(&init_mm.mm_count);
curr->active_mm = &init_mm;
if (curr->mm)
BUG();
BUG_ON(curr->mm);
enter_lazy_tlb(&init_mm, curr);

load_sp0(t, thread);
Expand Down
3 changes: 1 addition & 2 deletions arch/x86/kernel/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ static void ich_force_hpet_resume(void)
if (!force_hpet_address)
return;

if (rcba_base == NULL)
BUG();
BUG_ON(rcba_base == NULL);

/* read the Function Disable register, dword mode only */
val = readl(rcba_base + 0x3404);
Expand Down

0 comments on commit 8c5dfd2

Please sign in to comment.