Kernel Newbies archive on
 help / color / Atom feed
* Check for preemption only when returning from interrupt ?
       [not found] <>
@ 2020-05-20  9:38 ` Taeung Song
  0 siblings, 0 replies; only message in thread
From: Taeung Song @ 2020-05-20  9:38 UTC (permalink / raw)
  To: kernelnewbies


After reading arch/x86/entry/entry_64.S
I think preemption is checked
only when returning from interrupt (not exception like syscall)

Is is right ? (based on x86)

All scenario of checking for preemption in my opinion:
(1) check kernel preemption after interrupt

(2) check user preemption after interrupt
        -> exit_to_usermode_loop()
             -> if (cached_flags & _TIF_NEED_RESCHED)


Kernelnewbies mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2020-05-20  9:38 ` Check for preemption only when returning from interrupt ? Taeung Song

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ \
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone