Changeset 18323


Ignore:
Timestamp:
01/26/12 15:49:23 (17 months ago)
Author:
BrainSlayer
Message:

Update configs and configure imq queues depending on the cpu core count

Location:
src/linux/universal/linux-3.2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.2/.config_laguna

    r18313 r18323  
    16711671# CONFIG_HID_SUPPORT is not set 
    16721672CONFIG_USB_SUPPORT=y 
    1673 CONFIG_USB_COMMON=m 
     1673CONFIG_USB_COMMON=y 
    16741674CONFIG_USB_ARCH_HAS_HCD=y 
    16751675CONFIG_USB_ARCH_HAS_OHCI=y 
     
    17171717# CONFIG_USB_HWA_HCD is not set 
    17181718# CONFIG_USB_MUSB_HDRC is not set 
    1719 CONFIG_USB_DWC_OTG=y 
     1719CONFIG_USB_DWC_OTG=m 
    17201720# CONFIG_DWC_DEBUG is not set 
    17211721# CONFIG_DWC_HOST_ONLY is not set 
     
    18491849CONFIG_USB_GADGET_SELECTED=y 
    18501850CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2 
     1851# CONFIG_USB_FUSB300 is not set 
     1852# CONFIG_USB_R8A66597 is not set 
     1853# CONFIG_USB_M66592 is not set 
     1854# CONFIG_USB_AMD5536UDC is not set 
     1855# CONFIG_USB_CI13XXX_PCI is not set 
     1856# CONFIG_USB_NET2272 is not set 
     1857# CONFIG_USB_NET2280 is not set 
     1858# CONFIG_USB_GOKU is not set 
     1859# CONFIG_USB_LANGWELL is not set 
     1860# CONFIG_USB_EG20T is not set 
    18511861# CONFIG_USB_ZERO is not set 
    18521862# CONFIG_USB_ETH is not set 
  • src/linux/universal/linux-3.2/.config_laguna_nosmp

    r18313 r18323  
    16591659# CONFIG_HID_SUPPORT is not set 
    16601660CONFIG_USB_SUPPORT=y 
    1661 CONFIG_USB_COMMON=m 
     1661CONFIG_USB_COMMON=y 
    16621662CONFIG_USB_ARCH_HAS_HCD=y 
    16631663CONFIG_USB_ARCH_HAS_OHCI=y 
     
    17051705# CONFIG_USB_HWA_HCD is not set 
    17061706# CONFIG_USB_MUSB_HDRC is not set 
    1707 CONFIG_USB_DWC_OTG=y 
     1707CONFIG_USB_DWC_OTG=m 
    17081708# CONFIG_DWC_DEBUG is not set 
    17091709# CONFIG_DWC_HOST_ONLY is not set 
     
    18371837CONFIG_USB_GADGET_SELECTED=y 
    18381838CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2 
     1839# CONFIG_USB_FUSB300 is not set 
     1840# CONFIG_USB_R8A66597 is not set 
     1841# CONFIG_USB_M66592 is not set 
     1842# CONFIG_USB_AMD5536UDC is not set 
     1843# CONFIG_USB_CI13XXX_PCI is not set 
     1844# CONFIG_USB_NET2272 is not set 
     1845# CONFIG_USB_NET2280 is not set 
     1846# CONFIG_USB_GOKU is not set 
     1847# CONFIG_USB_LANGWELL is not set 
     1848# CONFIG_USB_EG20T is not set 
    18391849# CONFIG_USB_ZERO is not set 
    18401850# CONFIG_USB_ETH is not set 
  • src/linux/universal/linux-3.2/arch/arm/mach-cns3xxx/laguna.c

    r18171 r18323  
    3636#include <linux/if_ether.h> 
    3737#include <linux/export.h> 
     38#include <linux/module.h> 
    3839#include <asm/setup.h> 
    3940#include <asm/mach-types.h> 
     
    5354#include "core.h" 
    5455#include "devices.h" 
     56 
     57unsigned int numcpucores=1; 
     58EXPORT_SYMBOL(numcpucores); 
    5559 
    5660// Config 1 Bitmap 
  • src/linux/universal/linux-3.2/arch/arm/mach-cns3xxx/platsmp.c

    r18171 r18323  
    142142        spin_unlock(&boot_lock); 
    143143} 
     144extern unsigned int numcpucores; 
    144145 
    145146int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle) 
     
    173174                smp_rmb(); 
    174175                if (pen_release == -1) 
     176                { 
     177                        numcpucores++; 
    175178                        break; 
     179                } 
    176180 
    177181                udelay(10); 
  • src/linux/universal/linux-3.2/drivers/net/imq.c

    r18313 r18323  
    774774        return err; 
    775775} 
    776  
     776#ifdef CONFIG_ARCH_CNS3XXX 
     777extern unsigned int numcpucores; 
     778#endif 
    777779static int __init imq_init_module(void) 
    778780{ 
    779781        int err; 
     782unsigned int numcpucores=1; 
    780783 
    781784#if defined(CONFIG_IMQ_NUM_DEVS) 
     
    784787        BUILD_BUG_ON(CONFIG_IMQ_NUM_DEVS - 1 > IMQ_F_IFMASK); 
    785788#endif 
    786  
     789#ifdef CONFIG_ARCH_CNS3XXX 
     790        numqueues = numcpucores; 
     791#endif 
    787792        err = imq_init_devs(); 
    788793        if (err) { 
Note: See TracChangeset for help on using the changeset viewer.