~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/x86/include/asm/apic.h

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
         */
364
364
        int (*x86_32_early_logical_apicid)(int cpu);
365
365
 
366
 
        /* determine CPU -> NUMA node mapping */
 
366
        /*
 
367
         * Optional method called from setup_local_APIC() after logical
 
368
         * apicid is guaranteed to be known to initialize apicid -> node
 
369
         * mapping if NUMA initialization hasn't done so already.  Don't
 
370
         * add new users.
 
371
         */
367
372
        int (*x86_32_numa_cpu_node)(int cpu);
368
373
#endif
369
374
};
376
381
extern struct apic *apic;
377
382
 
378
383
/*
 
384
 * APIC drivers are probed based on how they are listed in the .apicdrivers
 
385
 * section. So the order is important and enforced by the ordering
 
386
 * of different apic driver files in the Makefile.
 
387
 *
 
388
 * For the files having two apic drivers, we use apic_drivers()
 
389
 * to enforce the order with in them.
 
390
 */
 
391
#define apic_driver(sym)                                        \
 
392
        static struct apic *__apicdrivers_##sym __used          \
 
393
        __aligned(sizeof(struct apic *))                        \
 
394
        __section(.apicdrivers) = { &sym }
 
395
 
 
396
#define apic_drivers(sym1, sym2)                                        \
 
397
        static struct apic *__apicdrivers_##sym1##sym2[2] __used        \
 
398
        __aligned(sizeof(struct apic *))                                \
 
399
        __section(.apicdrivers) = { &sym1, &sym2 }
 
400
 
 
401
extern struct apic *__apicdrivers[], *__apicdrivers_end[];
 
402
 
 
403
/*
379
404
 * APIC functionality to boot other CPUs - only used on SMP:
380
405
 */
381
406
#ifdef CONFIG_SMP
453
478
#define DEFAULT_TRAMPOLINE_PHYS_HIGH            0x469
454
479
 
455
480
#ifdef CONFIG_X86_64
456
 
extern struct apic apic_flat;
457
 
extern struct apic apic_physflat;
458
 
extern struct apic apic_x2apic_cluster;
459
 
extern struct apic apic_x2apic_phys;
460
481
extern int default_acpi_madt_oem_check(char *, char *);
461
482
 
462
483
extern void apic_send_IPI_self(int vector);
463
484
 
464
 
extern struct apic apic_x2apic_uv_x;
465
485
DECLARE_PER_CPU(int, x2apic_extra_bits);
466
486
 
467
487
extern int default_cpu_present_to_apicid(int mps_cpu);
475
495
        return;
476
496
}
477
497
 
478
 
extern void generic_bigsmp_probe(void);
 
498
extern struct apic *generic_bigsmp_probe(void);
479
499
 
480
500
 
481
501
#ifdef CONFIG_X86_LOCAL_APIC
511
531
 
512
532
#ifdef CONFIG_X86_32
513
533
 
514
 
extern struct apic apic_default;
515
 
 
516
534
static inline int noop_x86_32_early_logical_apicid(int cpu)
517
535
{
518
536
        return BAD_APICID;
537
555
        return cpuid_apic >> index_msb;
538
556
}
539
557
 
540
 
extern int default_x86_32_numa_cpu_node(int cpu);
541
 
 
542
558
#endif
543
559
 
544
560
static inline unsigned int