Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29628
b: refs/heads/master
c: 09a9a45
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter authored and Linus Torvalds committed Jun 25, 2006
1 parent 1b146fd commit b035731
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb1bb34d45400f12e0a33f8c487b3795674908a7
refs/heads/master: 09a9a45dc62fef5f46a0dc98a3cefdb464cc4aaa
2 changes: 1 addition & 1 deletion trunk/drivers/ieee1394/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ menu "IEEE 1394 (FireWire) support"

config IEEE1394
tristate "IEEE 1394 (FireWire) support"
depends on (PCI || BROKEN) && (BROKEN || !FRV)
depends on PCI || BROKEN
select NET
help
IEEE 1394 describes a high performance serial bus, which is also
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/ieee1394/nodemgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* directory of the kernel sources for details.
*/

#include <linux/bitmap.h>
#include <linux/kernel.h>
#include <linux/config.h>
#include <linux/list.h>
Expand Down Expand Up @@ -334,10 +335,12 @@ static ssize_t fw_show_ne_bus_options(struct device *dev, struct device_attribut
static DEVICE_ATTR(bus_options,S_IRUGO,fw_show_ne_bus_options,NULL);


/* tlabels_free, tlabels_allocations, tlabels_mask are read non-atomically
* here, therefore displayed values may be occasionally wrong. */
static ssize_t fw_show_ne_tlabels_free(struct device *dev, struct device_attribute *attr, char *buf)
{
struct node_entry *ne = container_of(dev, struct node_entry, device);
return sprintf(buf, "%d\n", atomic_read(&ne->tpool->count.count) + 1);
return sprintf(buf, "%d\n", 64 - bitmap_weight(ne->tpool->pool, 64));
}
static DEVICE_ATTR(tlabels_free,S_IRUGO,fw_show_ne_tlabels_free,NULL);

Expand Down

0 comments on commit b035731

Please sign in to comment.