Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 514b1923 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull Hexagon architecture changes from Richard Kuo:
 "These are mostly cleanups and feedback remaining from the original
  upstreaming."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rkuo/linux-hexagon-kernel:
  various Kconfig cleanup and old platform build code removal
  hexagon/mm/vm_fault.c: Port OOM changes to do_page_fault
  arch/hexagon/kernel/dma.c: make function static
  Remove unneeded include of version.h from arch/hexagon/include/asm/spinlock_types.h
  Hexagon: Use resource_size function
parents 6f73b362 5042ab91
Loading
Loading
Loading
Loading
+4 −17
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@ config HEXAGON
	# select ARCH_REQUIRE_GPIOLIB
	# select HAVE_CLK
	# select IRQ_PER_CPU
	select HAVE_IRQ_WORK
	# select GENERIC_PENDING_IRQ if SMP
	select HAVE_IRQ_WORK
	select GENERIC_ATOMIC64
	select HAVE_PERF_EVENTS
	select HAVE_GENERIC_HARDIRQS
@@ -26,7 +26,7 @@ config HEXAGON
	select NO_IOPORT
	select GENERIC_IOMAP
	select GENERIC_SMP_IDLE_THREAD
	# mostly generic routines, with some accelerated ones
	select STACKTRACE_SUPPORT
	---help---
	  Qualcomm Hexagon is a processor architecture designed for high
	  performance and low power across a wide variety of applications.
@@ -73,15 +73,6 @@ config GENERIC_CSUM
config GENERIC_IRQ_PROBE
	def_bool y

#config ZONE_DMA
#	bool
#	default y

config HAS_DMA
	bool
	select HAVE_DMA_ATTRS
	default y

config NEED_SG_DMA_LENGTH
	def_bool y

@@ -114,14 +105,11 @@ config GENERIC_BUG
	def_bool y
	depends on BUG

config BUG
	def_bool y

menu "Machine selection"

choice
	prompt "System type"
	default HEXAGON_ARCH_V2
	default HEXAGON_COMET

config HEXAGON_COMET
	bool "Comet Board"
@@ -194,8 +182,7 @@ source "kernel/Kconfig.hz"
source "kernel/time/Kconfig"

config GENERIC_GPIO
	bool "Generic GPIO support"
	default n
	def_bool n

endmenu

+0 −5
Original line number Diff line number Diff line
@@ -50,8 +50,3 @@ head-y := arch/hexagon/kernel/head.o
core-y += arch/hexagon/kernel/ \
	arch/hexagon/mm/ \
	arch/hexagon/lib/

#	arch/hexagon/platform/common/
#
#core-$(CONFIG_HEXAGON_COMET)		+= arch/hexagon/platform/comet/
#machine-$(CONFIG_HEXAGON_COMET)		:= comet
+0 −2
Original line number Diff line number Diff line
@@ -21,8 +21,6 @@
#ifndef _ASM_SPINLOCK_TYPES_H
#define _ASM_SPINLOCK_TYPES_H

#include <linux/version.h>

#ifndef __LINUX_SPINLOCK_TYPES_H
# error "please don't include this file directly"
#endif
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ static struct gen_pool *coherent_pool;

/* Allocates from a pool of uncached memory that was reserved at boot time */

void *hexagon_dma_alloc_coherent(struct device *dev, size_t size,
static void *hexagon_dma_alloc_coherent(struct device *dev, size_t size,
				 dma_addr_t *dma_addr, gfp_t flag,
				 struct dma_attrs *attrs)
{
+2 −4
Original line number Diff line number Diff line
@@ -201,12 +201,10 @@ void __init time_init_deferred(void)
		resource = rtos_timer_device.resource;

	/*  ioremap here means this has to run later, after paging init  */
	rtos_timer = ioremap(resource->start, resource->end
		- resource->start + 1);
	rtos_timer = ioremap(resource->start, resource_size(resource));

	if (!rtos_timer) {
		release_mem_region(resource->start, resource->end
			- resource->start + 1);
		release_mem_region(resource->start, resource_size(resource));
	}
	clocksource_register_khz(&hexagon_clocksource, pcycle_freq_mhz * 1000);

Loading