diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2007-04-24 23:51:55 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:29:49 +0200 |
commit | 1f9eda7e2b67898fb8e79b3aa3880211b51235e6 (patch) | |
tree | 4c8facf142531621f69b3b6c42e3370e94897260 /lib/locking-selftest-spin-softirq.h | |
parent | [WIRELESS] cfg80211: Update comment for locking. (diff) | |
download | linux-1f9eda7e2b67898fb8e79b3aa3880211b51235e6.tar.xz linux-1f9eda7e2b67898fb8e79b3aa3880211b51235e6.zip |
[TIPC]: Enhancements to msg_set_bits() routine
This patch makes two enhancements to msg_set_bits():
1) It now ignores any bits of the new field value that are not
covered by the mask being used. (Previously, if the new value
exceeded the size of the mask the extra bits could corrupt
other fields in the message header word being updated.)
2) The code has been optimized to minimize the number of run-time
endianness conversion operations by leveraging the fact that the
mask (and, in some cases, the value as well) is constant and the
necessary conversion can be performed by the compiler.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Jon Paul Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/locking-selftest-spin-softirq.h')
0 files changed, 0 insertions, 0 deletions