Re: [uml-devel] applying a .diff.bz2 patch

2005-05-20 Thread Henrik Nordstrom
On Thu, 19 May 2005, ashwin tanugula wrote:
Hi
How do i apply a .diff.bz2 patch to a linux kernel?
Usually by
cd linux-x.y.z
bzcat /path/to/patchfile.diff.bz2 | patch -p1 -s
then rebuild the kernel.
Sometimes -p0 is required instead of -p1, but very rarely (depends on who 
made the patch and how, see "man patch" for details)

Regards
Henrik
---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


[uml-devel] Re: [PATCH 4/9] UML - Delay loop cleanups

2005-05-20 Thread Jeff Dike
[EMAIL PROTECTED] said:
> I'll drop this in light of the review comments - pls redo&&resend 

Here 'tis.

This patch cleans up the delay implementations a bit, makes the loops
unoptimizable, and exports __udelay and __const_udelay.

Signed-off-by: Jeff Dike <[EMAIL PROTECTED]>

Index: linux-2.6.11/arch/um/sys-i386/delay.c
===
--- linux-2.6.11.orig/arch/um/sys-i386/delay.c  2005-05-19 13:18:50.0 
-0400
+++ linux-2.6.11/arch/um/sys-i386/delay.c   2005-05-19 13:19:40.0 
-0400
@@ -1,5 +1,7 @@
-#include "linux/delay.h"
-#include "asm/param.h"
+#include 
+#include 
+#include 
+#include 
 
 void __delay(unsigned long time)
 {
@@ -20,13 +22,19 @@ void __udelay(unsigned long usecs)
int i, n;
 
n = (loops_per_jiffy * HZ * usecs) / MILLION;
-   for(i=0;i
+#include 
+#include 
+#include 
 
 void __delay(unsigned long loops)
 {
unsigned long i;
 
-   for(i = 0; i < loops; i++) ;
+for(i = 0; i < loops; i++)
+cpu_relax();
 }
 
 void __udelay(unsigned long usecs)
 {
-   int i, n;
+   unsigned long i, n;
 
n = (loops_per_jiffy * HZ * usecs) / MILLION;
-   for(i=0;ihttp://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


[uml-devel] [PATCH 2.6.12-rc4] hostaudio MODULE_PARM replacement

2005-05-20 Thread Dominik Hackl


This patch replaces the deprecated MODULE_PARM function by the new 
module_param function.


Signed-off-by: Dominik Hackl <[EMAIL PROTECTED]>


--- linux-2.6.12-rc4.orig/arch/um/drivers/hostaudio_kern.c  2005-03-02 
08:38:32.0 +0100
+++ linux-2.6.12-rc4/arch/um/drivers/hostaudio_kern.c   2005-05-20 
23:25:18.0 +0200
@@ -57,10 +57,10 @@ __uml_setup("mixer=", set_mixer, "mixer=
 
 #else /*MODULE*/
 
-MODULE_PARM(dsp, "s");
+module_param(dsp, charp, 0644);
 MODULE_PARM_DESC(dsp, DSP_HELP);
 
-MODULE_PARM(mixer, "s");
+module_param(mixer, charp, 0644);
 MODULE_PARM_DESC(mixer, MIXER_HELP);
 
 #endif


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel