public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* m68k: remove thread_info struct from thread struct
@ 2011-09-05  4:41 gerg
  2011-09-05  4:41 ` [PATCH] " gerg
  0 siblings, 1 reply; 2+ messages in thread
From: gerg @ 2011-09-05  4:41 UTC (permalink / raw)
  To: linux-m68k


The following patch cleans up the duplicated thread_info struct within
each task. m68knommu only used the stack based one, but m68k mostly
used the threaad_struct one. All other architectures only used the
stack based one.

Unfortunately it adds a couple of instructions into the exception
processing paths. This could be reduced a little, since the act of
calculating the current pointer (%a2) actually gets us the thread_info
pointer. I have not taken advantage of this just yet, though this patch
does take advantage of what the GET_CURRENT() macro does internally.

I have tested this on ARAnyM and it seems to work just fine. Of course
tested on ColdFire as well, no problems there.

Thoughts on this one?

Regards
Greg

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

end of thread, other threads:[~2011-09-05  4:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-05  4:41 m68k: remove thread_info struct from thread struct gerg
2011-09-05  4:41 ` [PATCH] " gerg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox