linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Exit points for returning from kernel mode to user mode
@ 2008-06-24 21:22 Mitesh
  2008-06-24 22:21 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Mitesh @ 2008-06-24 21:22 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

 I am trying to understand exit points from kernel mode to user mode. I believe this happens when the scheduler is invoked, there are interrupts, exceptions, or the kernel is executing system call in process context. 

Is there a single function which is called in the ppc kernel when the mode is switched back to user mode ? 

I have linux 2.6.16.21 kernel running on a 4-way p550 IBM pSeries with POWER5 processors. Everytime before a process begins executing in user mode I want to execute a special SMT thread priority assembler instruction. 

What code files should I be looking at, is there one place this can be done? Any tips are appreciated.

[-- Attachment #2: Type: text/html, Size: 1419 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-24 22:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-24 21:22 Exit points for returning from kernel mode to user mode Mitesh
2008-06-24 22:21 ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).