summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-13 14:51:10 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:27:34 -0700
commit7225821d631f37f3c2b11e1d62aeb516b2acec30 (patch)
tree01579837697c8de0baefa2c678d368a5b45f2c56
parent7efa217db0db946e68e6274e2b9cbe0a973ec47a (diff)
[PATCH] disable logging for udevstart
The slow logging facilites on some systems are a reason for the reported slowness of udevstart. On one of my boxes udevstart is down from 9 second to 0.3 seconds.
-rw-r--r--Makefile4
-rw-r--r--udev.c1
-rw-r--r--udev_start.c (renamed from udevstart.c)0
3 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 09b74fcde7..efbb74355a 100644
--- a/Makefile
+++ b/Makefile
@@ -283,8 +283,8 @@ $(SENDER).o: $(GEN_HEADERS) $(HOST_PROGS)
$(STARTER).o: $(GEN_HEADERS) $(HOST_PROGS)
$(WAIT).o: $(GEN_HEADERS) $(HOST_PROGS)
-$(ROOT): $(LIBC) $(ROOT).o $(STARTER).o $(OBJS) $(HEADERS) $(GEN_MANPAGES)
- $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udev.o udevstart.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
+$(ROOT): $(LIBC) $(ROOT).o udev_start.o $(OBJS) $(HEADERS) $(GEN_MANPAGES)
+ $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udev.o udev_start.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS)
$(QUIET) $(STRIPCMD) $@
$(TESTER): $(LIBC) $(TESTER).o $(OBJS) $(HEADERS)
diff --git a/udev.c b/udev.c
index a41f222778..78fe82cfbb 100644
--- a/udev.c
+++ b/udev.c
@@ -143,6 +143,7 @@ int main(int argc, char *argv[], char *envp[])
switch(act_type) {
case UDEVSTART:
dbg("udevstart");
+ udev_log = 0;
namedev_init();
retval = udev_start();
break;
diff --git a/udevstart.c b/udev_start.c
index c1d877fb37..c1d877fb37 100644
--- a/udevstart.c
+++ b/udev_start.c