lkml.org 
[lkml]   [2004]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 2.6.6-rc2 RFT] Add's class support to cpuid.c
    Hanna Linder wrote:
    > This patch adds class support to arch/i386/kernel/cpuid.c. This enables udev
    > support. I have tested on a 2-way SMP system and on a 2-way built as UP.
    > Here are the results for the SMP:

    I think it would be better if udev could handle /dev/cpu as an iterator
    instead of needing O(N) kernel memory for all per-CPU devices; I made the same
    comments about devfs.

    As it is, it also mishandles the hotswap CPU scenario.

    > [hlinder@w-hlinder2 hlinder]$ tree /sys/class/cpuid
    > /sys/class/cpuid
    > |-- cpu0
    > | `-- dev
    > `-- cpu1
    > `-- dev
    >
    > 2 directories, 2 files
    > [hlinder@w-hlinder2 hlinder]$ more /sys/class/cpuid/cpu0/dev
    > 203:0
    > [hlinder@w-hlinder2 hlinder]$ more /sys/class/cpuid/cpu1/dev
    > 203:1
    > [hlinder@w-hlinder2 hlinder]$

    -hpa
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:2.485 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site