VirtualBox

Ignore:
Timestamp:
Dec 14, 2009 3:54:04 PM (15 years ago)
Author:
vboxsync
Message:

Linux support driver: adapted the CONFIG_PERF_* heuristics to 2.6.32 (CONFIG_PERF_COUNTERS was renamed to CONFIG_PERF_EVENTS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r25278 r25365  
    488488            if ((GET_APIC_DELIVERY_MODE(v) == APIC_MODE_NMI) && !(v & APIC_LVT_MASKED))
    489489            {
    490 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) && defined(CONFIG_PERF_COUNTERS)
     490# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31) \
     491     && (defined(CONFIG_PERF_COUNTERS) || defined(CONFIG_PERF_EVENTS))
    491492                /* 2.6.31+: The performance counter framework will initialize the LVTPC
    492493                 * vector as NMI. We can't disable the framework but the kernel loader
    493494                 * script will do 'echo 2 > /proc/sys/kernel/perf_counter_paranoid'
    494495                 * which hopefilly prevents any usage of hardware performance counters
    495                  * and therefore triggering of NMIs. */
     496                 * and therefore triggering of NMIs.
     497                 * 2.6.32+: CONFIG_PERF_COUNTERS => CONFIG_PERF_EVENTS */
    496498                printk(KERN_ERR DEVICE_NAME
    497499                       ": Warning: 2.6.31+ kernel detected. Most likely the hardware performance\n"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette