ia64/xen-unstable

changeset 13020:35c724302bdd

[LINUX] Fix seg-fixup warning.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Dec 14 11:09:27 2006 +0000 (2006-12-14)
parents 8a97b4a43a3d
children 4762d73ced42 c98ca86138a7
files linux-2.6-xen-sparse/arch/i386/kernel/fixup.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/fixup.c	Thu Dec 14 10:49:54 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/fixup.c	Thu Dec 14 11:09:27 2006 +0000
     1.3 @@ -43,18 +43,18 @@ fastcall void do_fixup_4gb_segment(struc
     1.4  	char info[100];
     1.5  	int i;
     1.6  
     1.7 -	if (test_and_set_bit(0, &printed))
     1.8 +	/* Ignore statically-linked init. */
     1.9 +	if (current->tgid == 1)
    1.10  		return;
    1.11 -
    1.12 -        if (current->tgid == 1) /* Ignore statically linked init */
    1.13 -                return; 
    1.14              
    1.15  	HYPERVISOR_vm_assist(
    1.16  		VMASST_CMD_disable, VMASST_TYPE_4gb_segments_notify);
    1.17  
    1.18 +	if (test_and_set_bit(0, &printed))
    1.19 +		return;
    1.20 +
    1.21  	sprintf(info, "%s (pid=%d)", current->comm, current->tgid);
    1.22  
    1.23 -
    1.24  	DP("");
    1.25  	DP("***************************************************************");
    1.26  	DP("***************************************************************");