Changeset 01e48c1 in mainline for arch/ia32/src


Ignore:
Timestamp:
2005-09-15T21:02:27Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0a50f59
Parents:
d6dcdd2e
Message:

Optimize sorting functions so that malloc() and free() is called only for e_size > EBUFSIZE.
Smaller buffers are allocated directly on the stack.

Some copyright holder fixes on some files written by Ondrej Palkovsky.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/acpi/madt.c

    rd6dcdd2e r01e48c1  
    113113int madt_cmp(void * a, void * b)
    114114{
    115     return
    116         (((struct madt_apic_header *) a)->type > ((struct madt_apic_header *) b)->type) ?
    117         1 :
    118         ((((struct madt_apic_header *) a)->type < ((struct madt_apic_header *) b)->type) ? -1 : 0);
     115        return
     116                (((struct madt_apic_header *) a)->type > ((struct madt_apic_header *) b)->type) ?
     117                1 :
     118                ((((struct madt_apic_header *) a)->type < ((struct madt_apic_header *) b)->type) ? -1 : 0);
    119119}
    120120       
    121121void acpi_madt_parse(void)
    122122{
    123 
    124 
    125123        struct madt_apic_header *end = (struct madt_apic_header *) (((__u8 *) acpi_madt) + acpi_madt->header.length);
    126124        struct madt_apic_header *h;
Note: See TracChangeset for help on using the changeset viewer.