small question

Anton Nekhoroshih <[email protected]> Sat, 13 Mar 2004 17:53:43 +0300
Newsgroups gmane.comp.file-systems.opengfs.devel
Message-ID <[email protected]>
Hi Guys,

I have Fedore Core 1:
uname -a Linux bkh.inforus.com 2.4.22-1.2174.nptlcustom #64 Сбт Фев 28
20:48:22 MSK 2004 i686 i686 i386 GNU/Linux

In kernel source not defined SCHED_YIELD,  whether I can use
SCHED_NORMAL ?

RCS file: /cvsroot/opengfs/opengfs/src/include/osi_linux_2_4.h,v
retrieving revision 1.36
diff -c -r1.36 osi_linux_2_4.h
*** opengfs/src/include/osi_linux_2_4.h 30 Apr 2003 16:44:56 -0000  1.36
-- opengfs/src/include/osi_linux_2_4.h 13 Mar 2004 14:30:15 -0000
***************
*** 108,114 ****
  
  #define osi_schedule() \
  do { \
!       current->policy |= SCHED_YIELD; \
        schedule(); \
  } while(0)
  #define osi_sleep(x) \
-- 108,114 --
  
  #define osi_schedule() \
  do { \
!       current->policy |= SCHED_NORMAL; \
        schedule(); \
  } while(0)
  #define osi_sleep(x) \


Also it was necessary more to change the following:
- spin_lock_irqsave(&current->sigmask_lock, ...);
+ spin_lock_irqsave(&current->sighand->siglock, ...);
- recalc_sigpending(current);
+ recalc_sigpending();
- spin_unlock_irqrestore(&current->sigmask_lock, ...);
+ spin_unlock_irqrestore(&current->sighand->siglock, ...);

Whether it is true?




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click