Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43627
b: refs/heads/master
c: f0d1b0b
h: refs/heads/master
i:
  43625: 0db5300
  43623: ac0b1d3
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Dec 8, 2006
1 parent 9f632cf commit 4edc14b
Show file tree
Hide file tree
Showing 37 changed files with 385 additions and 29 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: b3d7ae5f47a58a9f7b152deeaf7daa1fc558a8f1
refs/heads/master: f0d1b0b30d250a07627ad8b9fbbb5c7cc08422e8
8 changes: 8 additions & 0 deletions trunk/arch/alpha/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/arm26/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/avr32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ config GENERIC_TIME
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_BUST_SPINLOCK
bool

Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/cris/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/frv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ config TIME_LOW_RES
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default y

config ARCH_HAS_ILOG2_U64
bool
default y

mainmenu "Fujitsu FR-V Kernel Configuration"

source "init/Kconfig"
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/h8300/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default n

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/i386/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,14 @@ config RWSEM_XCHGADD_ALGORITHM
depends on !M386
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_CALIBRATE_DELAY
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/ia64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/m32r/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default n

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/m68k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/m68knommu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default n

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/parisc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ config RWSEM_GENERIC_SPINLOCK
config RWSEM_XCHGADD_ALGORITHM
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_FIND_NEXT_BIT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/ppc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default y

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ config RWSEM_XCHGADD_ALGORITHM
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config GENERIC_HWEIGHT
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ config LOCKDEP_SUPPORT
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

source "init/Kconfig"

menu "System type"
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/sh64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ config RWSEM_XCHGADD_ALGORITHM
config GENERIC_ISA_DMA
bool

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

source init/Kconfig

menu "System type"
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@ config ARCH_MAY_HAVE_PC_FDC
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config SUN_PM
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/sparc64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ config ARCH_MAY_HAVE_PC_FDC
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

config AUDIT_ARCH
bool
default y
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/v850/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ config TIME_LOW_RES
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

# Turn off some random 386 crap that can affect device config
config ISA
bool
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/x86_64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ config GENERIC_BUG
default y
depends on BUG

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

source "init/Kconfig"


Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/xtensa/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ config GENERIC_HARDIRQS
bool
default y

config ARCH_HAS_ILOG2_U32
bool
default n

config ARCH_HAS_ILOG2_U64
bool
default n

source "init/Kconfig"

menu "Processor type and features"
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/hw/mthca/mthca_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static int mthca_query_device(struct ib_device *ibdev,
props->max_map_per_fmr = 255;
else
props->max_map_per_fmr =
(1 << (32 - long_log2(mdev->limits.num_mpts))) - 1;
(1 << (32 - ilog2(mdev->limits.num_mpts))) - 1;

err = 0;
out:
Expand Down Expand Up @@ -816,7 +816,7 @@ static int mthca_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *uda
lkey = ucmd.lkey;
}

ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, long_log2(entries), &status);
ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries), &status);
if (status)
ret = -EINVAL;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/hw/mthca/mthca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,11 @@ int mthca_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask,

if (mthca_is_memfree(dev)) {
if (qp->rq.max)
qp_context->rq_size_stride = long_log2(qp->rq.max) << 3;
qp_context->rq_size_stride = ilog2(qp->rq.max) << 3;
qp_context->rq_size_stride |= qp->rq.wqe_shift - 4;

if (qp->sq.max)
qp_context->sq_size_stride = long_log2(qp->sq.max) << 3;
qp_context->sq_size_stride = ilog2(qp->sq.max) << 3;
qp_context->sq_size_stride |= qp->sq.wqe_shift - 4;
}

Expand Down
Loading

0 comments on commit 4edc14b

Please sign in to comment.