aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-05MIPS: Create and use asm/arch_hweight.hDavid Daney2-1/+42
Some MIPS ISA processor varients can do hweight operations efficiently. Split arch_hweight.h into a seperate file, and implement the operations with __builtin_popcount{,ll} if supported. Signed-off-by: David Daney <[email protected]> To: [email protected] Cc: David Daney <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1430/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: AR7: rewrite of cpmac_get_mac()Alexander Clouter1-27/+15
Shamelessly stealing wisdom from pasemi_mac.c, I found char2hex() could be replaced with a single call to sscanf(), looks cleaner to me at least. The result is 100 bytes trimmed off the size of a compiled cpmac_get_mac() and as an extra bonus it grumbles and gracefully fails over to using random_ether_addr() when an attempt to parse an invalid MAC address is made. Signed-off-by: Alexander Clouter <[email protected]> To: [email protected] Cc: [email protected] Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PowerTV: Simplify command line handling and needed config changesDavid VomLehn2-78/+201
Additional changes to Youichi Yuasa's command line simplication code The PowerTV platform uses a non-standard way to get the kernel command line--we insert a built-in command line into arcs_cmdline and to get additional command line information from the bootloader via a pointer in the a1 register. It is necessary to insert a space between to the two strings or the last argument from arcs_cmdline and the first argument from the bootloader may be inadvertantly combined. It is also necessary to set CONFIG_CMDLINE_BOOL to "y" and to set the default command line to an empty string to get the simplified code to work properly in the PowerTV environment. Signed-off-by: David VomLehn <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1438/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Update comment for cpu_has_clo_clzRalf Baechle1-1/+2
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: MSP71xx: Remove dead CONFIG_MTD_PMC_MSP_RAMROOTChristoph Egger1-4/+0
CONFIG_MTD_PMC_MSP_RAMROOT doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: Ralf Baechle <[email protected]>, Yoichi Yuasa <[email protected]>, [email protected], [email protected] Cc: [email protected] Acked-by: Shane McDonald <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1375/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PowerTV: Removing dead CONFIG_DIAGNOSTICSChristoph Egger1-6/+0
CONFIG_DIAGNOSTICS doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: David VomLehn <[email protected]> To: Yoichi Yuasa <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1374/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PNX Removing dead CONFIG_PMCTWILEDChristoph Egger1-11/+0
CONFIG_PMCTWILED doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Acked-by: Shane McDonald <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1373/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Remove dead CONFIG_MTD_PB1550_BOOT, CONFIG_MTD_PB1550_USERChristoph Egger1-8/+0
CONFIG_MTD_PB1550_BOOT, CONFIG_MTD_PB1550_USER doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: Manuel Lauss <[email protected]>, To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1370/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Cavium: Remove dead CONFIG_GDB_CONSOLEChristoph Egger3-12/+0
CONFIG_GDB_CONSOLE doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: David Daney <[email protected]> To: Yang Shi <[email protected]> To: Herbert Xu <[email protected]> To: Tejun Heo <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1368/ Acked-by: David Daney <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Alchemy: Remove dead CONFIG_SOC_AU1000_FREQUENCYChristoph Egger1-4/+0
CONFIG_SOC_AU1000_FREQUENCY doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1367/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Provide more elevant interface cu2_notifier for CP2 extensions.Ralf Baechle3-11/+14
Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: David Daney <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1504/
2010-08-05MIPS: Remove unnecessary header file inclusion from fault.c.Ralf Baechle1-1/+0
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05printk: fix delayed messages from CPU hotplug eventsKevin Cernekee1-2/+31
When a secondary CPU is being brought up, it is not uncommon for printk() to be invoked when cpu_online(smp_processor_id()) == 0. The case that I witnessed personally was on MIPS: http://lkml.org/lkml/2010/5/30/4 If (can_use_console() == 0), printk() will spool its output to log_buf and it will be visible in "dmesg", but that output will NOT be echoed to the console until somebody calls release_console_sem() from a CPU that is online. Therefore, the boot time messages from the new CPU can get stuck in "limbo" for a long time, and might suddenly appear on the screen when a completely unrelated event (e.g. "eth0: link is down") occurs. This patch modifies the console code so that any pending messages are automatically flushed out to the console whenever a CPU hotplug operation completes successfully or aborts. The issue was seen on 2.6.34. Original patch by Kevin Cernekee with cleanups by akpm and additional fixes by Santosh Shilimkar. This patch superseeds https://patchwork.linux-mips.org/patch/1357/. Signed-off-by: Kevin Cernekee <[email protected]> To: <[email protected]> To: <[email protected]> To: <[email protected]> To: <[email protected]> To: <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Reviewed-by: Paul Mundt <[email protected]> Signed-off-by: Kevin Cernekee <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1534/ LKML-Reference: <ede63b5a20af951c755736f035d1e787772d7c28@localhost> LKML-Reference: <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up arch/mips/MakefileSam Ravnborg1-13/+4
- Drop CLEAN_FILES assignments that is no longer required - Add $(Q) in a few rules Signed-off-by: Sam Ravnborg <[email protected]> To: linux-mips <[email protected]> To: Wu Zhangjin <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1305/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Refactor arch/mips/boot/compressed/MakefileSam Ravnborg2-40/+36
- use hostprogs-y for the elf2ecoff - list all *.o file in targets - renamed obj-y to vmlinuzobjs-y (it was confusing to re-use a kbuild variable) - fix all uses of if_changed/cmd - use kbuild rules to beautify output - update clean-file to clean vmlinuz.* in top-level directory - simplied logic in arch/mips/Makefile for compressed targets The net result is a more kbuild conformant Makefile but readability did not increase. Signed-off-by: Sam Ravnborg <[email protected]> To: linux-mips <[email protected]> To: Wu Zhangjin <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1304/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Refactor arch/mips/boot/MakefileSam Ravnborg2-35/+25
- remove stuff that is not needed VMLINUX assignment, all: rule - use hostprogs-y for the host program - use kbuild rules for the three targets - to beautify output - drop clean-files - it is no longer needed - simplify arch/mips/Makefile when calling targets in boot/Makefile Signed-off-by: Sam Ravnborg <[email protected]> To: linux-mips <[email protected]> To: Wu Zhangjin <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1303/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PNX8550: Migrate to new platform makefile style.Ralf Baechle5-20/+11
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PNX833x: Migrate to new platform makefile style.Ralf Baechle6-12/+9
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: STB8550: Move boards over to obj-yRalf Baechle3-4/+4
Preparatory cleanup for moving Alchemy over to new MIPS Platform build system support. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: STB22x: Move boards over to obj-yRalf Baechle2-3/+3
Preparatory cleanup for moving Alchemy over to new MIPS Platform build system support. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PNX8550: Move code one directory level up.Ralf Baechle18-3/+282
It was sharing the nxp directory but no code with pnx833x and will fit better into the new platform makefile scheme, if moved. Also after the pnx833x code has been moved up, the pnx8550 Code was the last users of the nxp dir. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PNX833x: Move code one directory level up.Ralf Baechle9-3/+3
It was sharing the nxp directory but no code with pnx8550 and will fit better into the new platform makefile scheme, if moved. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: EMMA: Migrate to new platform makefile style.Ralf Baechle4-12/+11
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: TXx9: Migrate to new platform makefile style.Ralf Baechle9-32/+28
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Sibyte: Migrate to new platform makefile style.Ralf Baechle7-56/+71
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Migrate to new platform makefile style.Ralf Baechle4-14/+13
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: BCM63xx: Migrate to new platform makefile style.Ralf Baechle4-9/+8
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: BCM47xx: Migrate to new platform makefile style.Ralf Baechle3-7/+8
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Lasat: Migrate to new platform makefile style.Ralf Baechle4-9/+8
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PowerTV: Migrate to new platform makefile style.Ralf Baechle4-8/+9
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: WRPPMC: Migrate to new platform makefile style.Ralf Baechle4-10/+9
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: WRPPMC: Move code one directory level up.Ralf Baechle8-1/+1
It was the last platform under gt64120 and will fit better into the new platform makefile scheme, if moved. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: RB532: Migrate to new platform makefile style.Ralf Baechle4-9/+8
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: IP32: Migrate to new platform makefile style.Ralf Baechle4-14/+12
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Malta: Migrate to new platform makefile style.Ralf Baechle4-10/+8
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: IP22, IP28: Migrate to new platform makefile style.Ralf Baechle4-37/+35
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: SNI: Migrate to new platform makefile style.Ralf Baechle4-14/+12
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: DECstation: Migrate to new platform makefile style.Ralf Baechle4-10/+9
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Jazz: Migrate to new platform makefile style.Ralf Baechle4-9/+7
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: PMC-Sierra: Move board Makefile parts to their own Platform fileShane McDonald3-15/+15
Signed-off-by: Shane McDonald <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1354/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Move VR41xx Makefile parts to their own Platform fileYoichi Yuasa4-35/+33
Signed-off-by: Yoichi Yuasa <[email protected]> Cc: linux-mips <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1322/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Move Cobalt Makefile parts to their own Platform fileYoichi Yuasa4-9/+7
Signed-off-by: Yoichi Yuasa <[email protected]> Cc: linux-mips <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1321/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: IP27: Migrate to new Platform fileRalf Baechle4-22/+20
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Move Alchemy Makefile parts to their own Platform file.Manuel Lauss8-115/+110
[Ralf: Remove a forgotten -Werror in Pb1200 Makefile.] Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Cc: Sam Ravnborg <[email protected]> Cc: Manuel Lauss <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1319/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Alchemy: fix deprecated compile warningsFUJITA Tomonori1-4/+4
Replace deprecated DMA_32BIT_MASK with DMA_BIT_MASK. This is needed because the new style platform makefiles will enable -Werror. cc1: warnings being treated as errors arch/mips/alchemy/devboards/db1200/platform.c:219: error: 'DMA_nnBIT_MASK' is deprecated arch/mips/alchemy/devboards/db1200/platform.c:226: error: 'DMA_nnBIT_MASK' is deprecated arch/mips/alchemy/devboards/db1200/platform.c:388: error: 'DMA_nnBIT_MASK' is deprecated arch/mips/alchemy/devboards/db1200/platform.c:393: error: 'DMA_nnBIT_MASK' is deprecated Signed-off-by: FUJITA Tomonori <[email protected]> To: [email protected] Acked-by: Manuel Lauss <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1427/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Alchemy: move boards over to obj-yManuel Lauss3-5/+4
Preparatory step for moving Alchemy over to new MIPS Platform build system support. Signed-off-by: Manuel Lauss <[email protected]> To: Linux-MIPS <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1318/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: MIPSsim: Migrate to new Platform fileRalf Baechle4-9/+7
Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Migrate makefile to new Platform fileWu Zhangjin5-33/+33
Signed-off-by: Wu Zhangjin <[email protected]> To: linux-mips <[email protected]> Cc: Alexander Clouter <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: Sam Ravnborg <[email protected]>, Patchwork: https://patchwork.linux-mips.org/patch/1313/ Patchwork: https://patchwork.linux-mips.org/patch/1326/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Introduce support for Platform definitionsSam Ravnborg5-8/+16
Move platform specific definitions to the platfrom directories. Each platform shall do the following: 1) include an entry in arch/mips/Kbuild.platforms 2) add relevant definitions to arch/mips/<platform>/Platform This commits changes ar7 to the new scheme as an example. Introducing a platform speecific Platfrom file has following advantages: 1) decentralization of platfrom definitions 2) simplification af arch/mips/Makefile 3) force all platfrom to build with -Werror (done in arch/mips/Kbuild) [Ralf: Remove forgotten -Werror from AR7 Makefile] Signed-off-by: Sam Ravnborg <[email protected]> To: linux-mips <[email protected]> To: Wu Zhangjin <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1302/ Patchwork: http://patchwork.linux-mips.org/patch/1308/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Add -Werror to arch/mips/KbuildSam Ravnborg4-5/+6
Adding subdirs-ccflags-y := -Werror to arch/mips/Kbuild let us in one go cover all files with -Werror. In addition this allows us to remove the individual -Werror definition in various Makefile. Adding the definition to Kbuild as a recursive option help us not to forget to do so. With this change we now compile arch/mips/kernel/cpufreq with -Werror One drawback: When specifying a subdirectory covered by the Kbuild file like this: make arch/mips/kernel/ then kbuild fails to pick up the -Werror definition. Signed-off-by: Sam Ravnborg <[email protected]> To: linux-mips <[email protected]> To: Wu Zhangjin <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1301/ Signed-off-by: Ralf Baechle <[email protected]>