Searched hist:97597 (Results 1 - 2 of 2) sorted by relevance
/linux-master/block/ | ||
H A D | blk-lib.c | diff 97597dc0 Mon Nov 04 06:00:06 MST 2013 Geert Uytterhoeven <geert@linux-m68k.org> block: Do not call sector_div() with a 64-bit divisor do_div() (called by sector_div() if CONFIG_LBDAF=y) is meant for divisions of 64-bit number by 32-bit numbers. Passing 64-bit divisor types caused issues in the past on 32-bit platforms, cfr. commit ea077b1b96e073eac5c3c5590529e964767fc5f7 ("m68k: Truncate base in do_div()"). As queue_limits.max_discard_sectors and .discard_granularity are unsigned int, max_discard_sectors and granularity should be unsigned int. As bdev_discard_alignment() returns int, alignment should be int. Now 2 calls to sector_div() can be replaced by 32-bit arithmetic: - The 64-bit modulo operation can become a 32-bit modulo operation, - The 64-bit division and multiplication can be replaced by a 32-bit modulo operation and a subtraction. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> |
/linux-master/arch/arm/mach-omap2/ | ||
H A D | omap_hwmod.c | diff 97597b96 Tue Mar 19 05:30:31 MDT 2013 Santosh Shilimkar <santosh.shilimkar@ti.com> ARM: OMAP2+: hwmod: Don't call _init_mpu_rt_base if no sysc OMAP hwmod layer does the reset of the IPs in early code so that we have SOC in sane state. To do the soft-reset, it needs to ioremap() the IP address space to be able to write to sysconfig registers. But there are few hwmod which doesn't have sysconfig registers and hence no need to ioremap() them in early init code. Prevent calling the _init_mpu_rt_base() conditional based on sysc availability. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org> |
Completed in 194 milliseconds