public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: [patch 41/44] make thread_info.flags an unsigned long
@ 2006-02-01 18:17 Luck, Tony
  2006-02-02  1:37 ` Akinobu Mita
  0 siblings, 1 reply; 3+ messages in thread
From: Luck, Tony @ 2006-02-01 18:17 UTC (permalink / raw)
  To: Akinobu Mita, linux-kernel
  Cc: Richard Henderson, Ivan Kokshaysky, linux-ia64, linuxsh-dev,
	Andi Kleen

 
--- 2.6-git.orig/include/asm-ia64/thread_info.h
+++ 2.6-git/include/asm-ia64/thread_info.h
@@ -24,7 +24,7 @@
 struct thread_info {
 	struct task_struct *task;	/* XXX not really needed, except for dup_task_struct() */
 	struct exec_domain *exec_domain;/* execution domain */
-	__u32 flags;			/* thread_info flags (see TIF_*) */
+	unsigned long flags;		/* thread_info flags (see TIF_*) */
 	__u32 cpu;			/* current CPU */
 	mm_segment_t addr_limit;	/* user-level address space limit */
 	int preempt_count;		/* 0=premptable, <0=BUG; will also serve as bh-counter */

This leaves a useless hole in the structure.  Tell me again why
this is a good thing?

-Tony

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [patch 00/44] generic bitops
@ 2006-02-01  9:02 Akinobu Mita
  2006-02-01  9:03 ` [patch 41/44] make thread_info.flags an unsigned long Akinobu Mita
  0 siblings, 1 reply; 3+ messages in thread
From: Akinobu Mita @ 2006-02-01  9:02 UTC (permalink / raw)
  To: linux-kernel

Large number of boilerplate bit operations which are written in C-language
are scattered around include/asm-*/bitops.h.
This patch series gathers them into include/asm-generic/bitops/*.h .
It will be the benefit to:

- kill duplicated code and comment (about 4000 lines)
- use better C-language equivalents
- help porting new architecture

Major changes since previous version:

- put each class of bitop into its own header file in asm-generic/bitops/
- change __ffs()
- fix warning fix

Todo:

- improve hweight*() routines

--

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

end of thread, other threads:[~2006-02-02  1:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-01 18:17 [patch 41/44] make thread_info.flags an unsigned long Luck, Tony
2006-02-02  1:37 ` Akinobu Mita
  -- strict thread matches above, loose matches on Subject: below --
2006-02-01  9:02 [patch 00/44] generic bitops Akinobu Mita
2006-02-01  9:03 ` [patch 41/44] make thread_info.flags an unsigned long Akinobu Mita

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