lkml.org 
[lkml]   [2004]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject/sys/devices/system/timer registered twice
Hi,
I got this on a Centrino box with the latest bk:

[kay@pim linux.kay]$ ls -l /sys/devices/system/
total 0
drwxr-xr-x 7 root root 0 Nov 8 15:12 .
drwxr-xr-x 5 root root 0 Nov 8 15:12 ..
drwxr-xr-x 3 root root 0 Nov 8 15:12 cpu
drwxr-xr-x 3 root root 0 Nov 8 15:12 i8259
drwxr-xr-x 2 root root 0 Nov 8 15:12 ioapic
drwxr-xr-x 3 root root 0 Nov 8 15:12 irqrouter
?--------- ? ? ? ? ? timer


It is caused by registering two devices with the name "timer" from:

arch/i386/kernel/time.c
arch/i386/kernel/timers/timer_pit.c

If I change one of the names, I get two correct looking sysfs entries.

Greg, shouldn't the driver core prevent the corruption of the first
device if another one tries to register with the same name?

Thanks,
Kay
-
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:07    [W:0.094 / U:6.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site