- 15 Mar, 2012 1 commit
-
-
Arnd Bergmann authored
The fixes branch was merged into mainline just after v3.3-rc7, I'm merging it into this branch to fix up a nontrivial merge conflict. Unfortunately this means that we are now based on a commit between -rc releases, which we normally try to avoid. Conflicts: arch/arm/mach-shmobile/board-mackerel.c Resolution suggested by Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
- 14 Mar, 2012 1 commit
-
-
Arnd Bergmann authored
setup-r8a7779.c has grown a new user of the __io() macro. Rob Herring's PIO cleanup series already gets rid of all other uses in shmobile, so we should ensure that this one gets removed as well. Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
- 12 Mar, 2012 35 commits
-
-
Magnus Damm authored
Now when all SoCs and boards are converted to use shmobile_earlytimer_init(), change the default behavior of shmobile_timer.init() from using early timer to do nothing which is suitable for upcoming DT support. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the SoC specific timer code from Marzen board code to r8a7779 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Copy the SoC specific timer code from Bonito board code to r8a7740 setup code. This makes is possible to share the SoC specific timer code across boards. The Bonito specific timer setup code tied to the FPGA is kept as-is. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the SoC specific timer code from AG5EVM and Kota2 to sh73a0 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the SoC specific timer code from AP4EVB and Mackerel to sh7372 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the SoC specific timer code from G4EVM board code to sh7377 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the SoC specific timer code from G3EVM board code to sh7367 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Add shmobile_earlytimer_init() that can be used to enable the earlytimer probing from the SoC code. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the board specific external clock setting for sh7372 AP4EVB from machine_desc->sys_timer->init() to machine_desc->init_machine(). This is ground work for shmobile timer code consolidation. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Move the board specific external clock setting for sh7372 Mackerel from machine_desc->sys_timer->init() to machine_desc->init_machine(). This is ground work for shmobile timer code consolidation. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Rename clk_init() to shmobile_clk_init() to avoid a potential future name space collision with the common clock framework. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
L2 Cache support for r8a7779. Settings taken from out-of-tree kernel patches by Kouei Abe. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the r8a7779 SoC and the Marzen board to make use of the functions r8a7779_map_io() and r8a7779_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the r8a7740 SoC and the Bonito board to make use of the functions r8a7740_map_io() and r8a7740_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the sh73a0 SoC and the AG5EVM and Kota2 boards to make use of the functions sh73a0_map_io() and sh73a0_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the sh7372 SoC and the AP4EVB and Mackerel boards to make use of the functions sh7372_map_io() and sh7372_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the sh7377 SoC and the G4EVM board to make use of the functions sh7377_map_io() and sh7377_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Update the sh7367 SoC and the G3EVM board to make use of the functions sh7367_map_io() and sh7367_add_early_devices(). Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Now when all clk_ops have been renamed it is safe to rename clk_ops to sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert remaining sh board code to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh5 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh4a SoCs to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh4 SoCs to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh3 SoCs to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh2a SoCs to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh2 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert the sh include asm/clock.h to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert r8a7779 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert r8a7740 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh73a0 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh7372 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh7377 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert sh7367 to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Convert the CPG code to use sh_clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
Magnus Damm authored
Introduce sh_clk_ops in parallel with clk_ops. Signed-off-by:
Magnus Damm <damm@opensource.se> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl>
-
- 10 Mar, 2012 3 commits
-
-
Linus Torvalds authored
-
Al Viro authored
Current code has put_ioctx() called asynchronously from aio_fput_routine(); that's done *after* we have killed the request that used to pin ioctx, so there's nothing to stop io_destroy() waiting in wait_for_all_aios() from progressing. As the result, we can end up with async call of put_ioctx() being the last one and possibly happening during exit_mmap() or elf_core_dump(), neither of which expects stray munmap() being done to them... We do need to prevent _freeing_ ioctx until aio_fput_routine() is done with that, but that's all we care about - neither io_destroy() nor exit_aio() will progress past wait_for_all_aios() until aio_fput_routine() does really_put_req(), so the ioctx teardown won't be done until then and we don't care about the contents of ioctx past that point. Since actual freeing of these suckers is RCU-delayed, we don't need to bump ioctx refcount when request goes into list for async removal. All we need is rcu_read_lock held just over the ->ctx_lock-protected area in aio_fput_routine(). Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk> Reviewed-by:
Jeff Moyer <jmoyer@redhat.com> Acked-by:
Benjamin LaHaise <bcrl@kvack.org> Cc: stable@vger.kernel.org Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
Al Viro authored
Have ioctx_alloc() return an extra reference, so that caller would drop it on success and not bother with re-grabbing it on failure exit. The current code is obviously broken - io_destroy() from another thread that managed to guess the address io_setup() would've returned would free ioctx right under us; gets especially interesting if aio_context_t * we pass to io_setup() points to PROT_READ mapping, so put_user() fails and we end up doing io_destroy() on kioctx another thread has just got freed... Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk> Acked-by:
Benjamin LaHaise <bcrl@kvack.org> Reviewed-by:
Jeff Moyer <jmoyer@redhat.com> Cc: stable@vger.kernel.org Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-