From: Christian L. <xi...@bo...> - 2003-02-08 12:43:30
|
David Coulson <da...@da...> writes: > So, anyone who has patches which are non-trivial, please tell me where > I can grab them so I can put them somewhere useful. If you ask nicely, > I may also be able to offer some web space for distribution and such > like. I actually have a trivial patch, that I sent to the list a while ago, but I never got a response about it. I apply it myself everytime I build a new UML kernel. It changes the contents of /proc/cpuinfo a bit to be more like on a real linux. For one thing it makes top print the 'CPU states' line, which will otherwise be missing. --- /home/xi/projects/user-mode-linux/linux/arch/um/kernel/um_arch.c Tue May 28 17:31:54 2002 +++ linux-2.4.18-uml/arch/um/kernel/um_arch.c Thu May 30 19:44:11 2002 @@ -64,10 +64,11 @@ return 0; #endif + seq_printf(m, "processor\t: %d\n", index); seq_printf(m, "bogomips\t: %lu.%02lu\n", loops_per_jiffy/(500000/HZ), (loops_per_jiffy/(5000/HZ)) % 100); - seq_printf(m, "host\t\t: %s\n", host_info); + seq_printf(m, "host\t\t: %s\n\n", host_info); return(0); } -- Med venlig hilsen Christian Laursen |