msm: clock-wince: Add clk_reset and fix 2 small warnings

Signed-off-by: marc1706 <admin@m-a-styles.de>
msm: htcleo: get rid of 2 incorrect config settings

Signed-off-by: marc1706 <admin@m-a-styles.de>
msm: htcleo: introduce new way of reserving memory for pmem

Committed-by: Shaky156
Signed-off-by: marc1706 <admin@m-a-styles.de>
msm: rpc: create rpc server even if the version ID is 0

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: fix pmem definitions in board file

The boot logo is now showing again.

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: add missing config entries

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: pmic: try RPC version 1 first
Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: add missing atmega_microp.h

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: smd: fix implementation of msm_hw_reset_hook

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
leds: add leds-microp for proper support of Leo's LED

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: add usb gadget and otg init

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
rtc: alarm: do not debug alarm calls

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
drivers: spi: use core_clk for spi and add missing device name

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: remove incorrect config setting

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: minor fixes

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: kgsl: fix pm_qos initialization

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
msm: htcleo: use broadcom chip identifier for uart serial

Signed-off-by: Marc Alexander <admin@m-a-styles.de>
rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check

Since ca5ecddf (rcu: define __rcu address space modifier for sparse)
rcu_dereference_check use rcu_read_lock_held as a part of condition
automatically so callers do not have to do that as well.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Wrap accesses to the fd_sets in struct fdtable

Wrap accesses to the fd_sets in struct fdtable (for recording open files and
close-on-exec flags) so that we can move away from using fd_sets since we
abuse the fd_set structs by not allocating the full-sized structure under
normal circumstances and by non-core code looking at the internals of the
fd_sets.

The first abuse means that use of FD_ZERO() on these fd_sets is not permitted,
since that cannot be told about their abnormal lengths.

This introduces six wrapper functions for setting, clearing and testing
close-on-exec flags and fd-is-open flags:

	void __set_close_on_exec(int fd, struct fdtable *fdt);
	void __clear_close_on_exec(int fd, struct fdtable *fdt);
	bool close_on_exec(int fd, const struct fdtable *fdt);
	void __set_open_fd(int fd, struct fdtable *fdt);
	void __clear_open_fd(int fd, struct fdtable *fdt);
	bool fd_is_open(int fd, const struct fdtable *fdt);

Note that I've prepended '__' to the names of the set/clear functions because
they require the caller to hold a lock to use them.

Note also that I haven't added wrappers for looking behind the scenes at the
the array.  Possibly that should exist too.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: http://lkml.kernel.org/r/20120216174942.23314.1364.stgit@warthog.procyon.org.uk
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Replace the fd_sets in struct fdtable with an array of unsigned longs

Replace the fd_sets in struct fdtable with an array of unsigned longs and then
use the standard non-atomic bit operations rather than the FD_* macros.

This:

 (1) Removes the abuses of struct fd_set:

     (a) Since we don't want to allocate a full fd_set the vast majority of the
     	 time, we actually, in effect, just allocate a just-big-enough array of
     	 unsigned longs and cast it to an fd_set type - so why bother with the
     	 fd_set at all?

     (b) Some places outside of the core fdtable handling code (such as
     	 SELinux) want to look inside the array of unsigned longs hidden inside
     	 the fd_set struct for more efficient iteration over the entire set.

 (2) Eliminates the use of FD_*() macros in the kernel completely.

 (3) Permits the __FD_*() macros to be deleted entirely where not exposed to
     userspace.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: http://lkml.kernel.org/r/20120216174954.23314.48147.stgit@warthog.procyon.org.uk
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>