Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile
* git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile: arch/tile/mm/init.c: trivial: use BUG_ON arch/tile: remove useless set_fixmap_nocache() macro arch/tile: add hypervisor-based character driver for SPI flash ROM ioctl-number.txt: add the tile hardwall ioctl range tile: use generic-y format for one-line asm-generic headers clocksource: tile: convert to use clocksource_register_hz
This commit is contained in:
@ -2,3 +2,41 @@ include include/asm-generic/Kbuild.asm
|
||||
|
||||
header-y += ucontext.h
|
||||
header-y += hardwall.h
|
||||
|
||||
generic-y += bug.h
|
||||
generic-y += bugs.h
|
||||
generic-y += cputime.h
|
||||
generic-y += device.h
|
||||
generic-y += div64.h
|
||||
generic-y += emergency-restart.h
|
||||
generic-y += errno.h
|
||||
generic-y += fb.h
|
||||
generic-y += fcntl.h
|
||||
generic-y += ioctl.h
|
||||
generic-y += ioctls.h
|
||||
generic-y += ipc.h
|
||||
generic-y += ipcbuf.h
|
||||
generic-y += irq_regs.h
|
||||
generic-y += kdebug.h
|
||||
generic-y += local.h
|
||||
generic-y += module.h
|
||||
generic-y += msgbuf.h
|
||||
generic-y += mutex.h
|
||||
generic-y += param.h
|
||||
generic-y += parport.h
|
||||
generic-y += poll.h
|
||||
generic-y += posix_types.h
|
||||
generic-y += resource.h
|
||||
generic-y += scatterlist.h
|
||||
generic-y += sembuf.h
|
||||
generic-y += serial.h
|
||||
generic-y += shmbuf.h
|
||||
generic-y += shmparam.h
|
||||
generic-y += socket.h
|
||||
generic-y += sockios.h
|
||||
generic-y += statfs.h
|
||||
generic-y += termbits.h
|
||||
generic-y += termios.h
|
||||
generic-y += types.h
|
||||
generic-y += ucontext.h
|
||||
generic-y += xor.h
|
||||
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/bug.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/bugs.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/cputime.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/device.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/div64.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/emergency-restart.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/errno.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/fb.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/fcntl.h>
|
@ -75,12 +75,6 @@ extern void __set_fixmap(enum fixed_addresses idx,
|
||||
|
||||
#define set_fixmap(idx, phys) \
|
||||
__set_fixmap(idx, phys, PAGE_KERNEL)
|
||||
/*
|
||||
* Some hardware wants to get fixmapped without caching.
|
||||
*/
|
||||
#define set_fixmap_nocache(idx, phys) \
|
||||
__set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
|
||||
|
||||
#define clear_fixmap(idx) \
|
||||
__set_fixmap(idx, 0, __pgprot(0))
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/ioctl.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/ioctls.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/ipc.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/ipcbuf.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/irq_regs.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/kdebug.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/local.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/module.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/msgbuf.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/mutex-dec.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/param.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/parport.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/poll.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/posix_types.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/resource.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/scatterlist.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/sembuf.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/serial.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/shmbuf.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/shmparam.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/socket.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/sockios.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/statfs.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/termbits.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/termios.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/types.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/ucontext.h>
|
@ -1 +0,0 @@
|
||||
#include <asm-generic/xor.h>
|
41
arch/tile/include/hv/drv_srom_intf.h
Normal file
41
arch/tile/include/hv/drv_srom_intf.h
Normal file
@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2011 Tilera Corporation. All Rights Reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation, version 2.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
|
||||
* NON INFRINGEMENT. See the GNU General Public License for
|
||||
* more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file drv_srom_intf.h
|
||||
* Interface definitions for the SPI Flash ROM driver.
|
||||
*/
|
||||
|
||||
#ifndef _SYS_HV_INCLUDE_DRV_SROM_INTF_H
|
||||
#define _SYS_HV_INCLUDE_DRV_SROM_INTF_H
|
||||
|
||||
/** Read this offset to get the total device size. */
|
||||
#define SROM_TOTAL_SIZE_OFF 0xF0000000
|
||||
|
||||
/** Read this offset to get the device sector size. */
|
||||
#define SROM_SECTOR_SIZE_OFF 0xF0000004
|
||||
|
||||
/** Read this offset to get the device page size. */
|
||||
#define SROM_PAGE_SIZE_OFF 0xF0000008
|
||||
|
||||
/** Write this offset to flush any pending writes. */
|
||||
#define SROM_FLUSH_OFF 0xF1000000
|
||||
|
||||
/** Write this offset, plus the byte offset of the start of a sector, to
|
||||
* erase a sector. Any write data is ignored, but there must be at least
|
||||
* one byte of write data. Only applies when the driver is in MTD mode.
|
||||
*/
|
||||
#define SROM_ERASE_OFF 0xF2000000
|
||||
|
||||
#endif /* _SYS_HV_INCLUDE_DRV_SROM_INTF_H */
|
@ -78,7 +78,6 @@ static struct clocksource cycle_counter_cs = {
|
||||
.rating = 300,
|
||||
.read = clocksource_get_cycles,
|
||||
.mask = CLOCKSOURCE_MASK(64),
|
||||
.shift = 22, /* typical value, e.g. x86 tsc uses this */
|
||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||
};
|
||||
|
||||
@ -91,8 +90,6 @@ void __init setup_clock(void)
|
||||
cycles_per_sec = hv_sysconf(HV_SYSCONF_CPU_SPEED);
|
||||
sched_clock_mult =
|
||||
clocksource_hz2mult(cycles_per_sec, SCHED_CLOCK_SHIFT);
|
||||
cycle_counter_cs.mult =
|
||||
clocksource_hz2mult(cycles_per_sec, cycle_counter_cs.shift);
|
||||
}
|
||||
|
||||
void __init calibrate_delay(void)
|
||||
@ -107,7 +104,7 @@ void __init calibrate_delay(void)
|
||||
void __init time_init(void)
|
||||
{
|
||||
/* Initialize and register the clock source. */
|
||||
clocksource_register(&cycle_counter_cs);
|
||||
clocksource_register_hz(&cycle_counter_cs, cycles_per_sec);
|
||||
|
||||
/* Start up the tile-timer interrupt source on the boot cpu. */
|
||||
setup_tile_timer();
|
||||
|
@ -836,8 +836,7 @@ void __init mem_init(void)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FLATMEM
|
||||
if (!mem_map)
|
||||
BUG();
|
||||
BUG_ON(!mem_map);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HIGHMEM
|
||||
|
Reference in New Issue
Block a user