lkml.org 
[lkml]   [2018]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectReduce init time of `lp_init()` and `ppdev_init()`
Date
Dear Linux folks,


I am trying to reduce the start-up time of the Linux kernel on an old
Lenovo X60. Looking through the time stamps of Linux 4.16-rc7+, the
modules `lp` and `ppdev` both take more than ten milliseconds to
initialize according to `initcall_debug`.

```
[ 8.337692] calling parport_default_proc_register+0x0/0x1000
[parport] @ 245
[ 8.337735] initcall parport_default_proc_register+0x0/0x1000
[parport] returned 0 after 30 usecs
[ 8.359066] calling lp_init_module+0x0/0x1000 [lp] @ 245
[ 8.381317] lp: driver loaded but no devices found
[ 8.385310] initcall lp_init_module+0x0/0x1000 [lp] returned 0 after
25613 usecs
[ 8.401727] calling ppdev_init+0x0/0x1000 [ppdev] @ 245
[ 8.411427] ppdev: user-space parallel port driver
[ 8.415390] initcall ppdev_init+0x0/0x1000 [ppdev] returned 0 after
13329 usecs
[ 8.434018] calling parport_pc_init+0x0/0xeed [parport_pc] @ 245
[ 8.435657] initcall parport_pc_init+0x0/0xeed [parport_pc] returned
0 after 1589 usecs
[ 9.343691] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro,discard
[ 9.742084] systemd-journald[271]: Received request to flush runtime
journal from PID 1
[ 10.049050] calling acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq] @ 297
[ 10.049668] initcall acpi_cpufreq_init+0x0/0x1000 [acpi_cpufreq]
returned 0 after 581 usecs
```

Furthermore, looking at the messages, it looks like it’s in the
“hotpath”. If that is true, is there a way to load that in parallel of
the other Linux kernel stuff?

Hints to get more insight are much appreciated.


Kind regards,

Paul

[unhandled content-type:application/pkcs7-signature]
\
 
 \ /
  Last update: 2018-03-29 17:57    [W:0.053 / U:1.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site