1. 17 Apr, 2008 3 commits
    • Ingo Molnar's avatar
      x86: fix switch_to() clobbers · 8b6451fe
      Ingo Molnar authored
      
      
      Liu Pingfan noticed that switch_to() clobbers more registers than its
      asm constraints specify.
      
      We get away with this due to luck mostly - schedule()
      by its nature only has 'local' state which gets reloaded
      automatically. Fix it nevertheless, we could hit this anytime.
      
      it turns out that with the extra constraints gcc manages to make
      schedule() even more compact:
      
         text	   data	    bss	    dec	    hex	filename
        28626	    684	   2640	  31950	   7cce	sched.o.before
        28613	    684	   2640	  31937	   7cc1	sched.o.after
      Reported-by: default avatarLiu Pingfan <kernelfans@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      8b6451fe
    • Ingo Molnar's avatar
      x86: clean up switch_to() · 23b55bd9
      Ingo Molnar authored
      
      
      Make the code more readable and more hackable:
      
       - use symbolic asm parameters
       - use readable indentation
       - add comments that explains the details
      
      No code changed:
      
      kernel/sched.o:
      
         text	   data	    bss	    dec	    hex	filename
        28626	    684	   2640	  31950	   7cce	sched.o.before
        28626	    684	   2640	  31950	   7cce	sched.o.after
      
      md5:
         2823d406c18b781975cdb2e7cfea0059  sched.o.before.asm
         2823d406c18b781975cdb2e7cfea0059  sched.o.after.asm
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      23b55bd9
    • Pavel Machek's avatar
      x86: wmb() confusion in system.h · 0d7a1819
      Pavel Machek authored
      
      
      Comment says wmb is a nop, but it is implemented as lock addl
      below... Should it be compiled to nop if we know we are running on
      "good" Intel cpu?
      
      At least remove confusing comment for now.
      Signed-off-by: default avatarPavel Machek <pavel@suse.cz>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      0d7a1819
  2. 04 Feb, 2008 3 commits
  3. 30 Jan, 2008 9 commits
  4. 11 Oct, 2007 1 commit