Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118223
b: refs/heads/master
c: f73aaf1
h: refs/heads/master
i:
  118221: a6978d7
  118219: 7d74d77
  118215: 5c21392
  118207: 27fa9aa
v: v3
  • Loading branch information
Linus Torvalds committed Oct 31, 2008
1 parent 23c3202 commit 065b921
Show file tree
Hide file tree
Showing 52 changed files with 233 additions and 164 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ce8e3073d9cfd6f859c22a25441db41b85cbf6e
refs/heads/master: f73aaf10ae14ee8f9644b0f7abe252fe7eeb17f5
13 changes: 0 additions & 13 deletions trunk/Documentation/arm/empeg/README

This file was deleted.

49 changes: 0 additions & 49 deletions trunk/Documentation/arm/empeg/ir.txt

This file was deleted.

11 changes: 0 additions & 11 deletions trunk/Documentation/arm/empeg/mkdevs

This file was deleted.

3 changes: 3 additions & 0 deletions trunk/Documentation/ftrace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@ explains which is which.
CPU#: The CPU which the process was running on.

irqs-off: 'd' interrupts are disabled. '.' otherwise.
Note: If the architecture does not support a way to
read the irq flags variable, an 'X' will always
be printed here.

need-resched: 'N' task need_resched is set, '.' otherwise.

Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/lguest/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This creates the demonstration utility "lguest" which runs a Linux guest.
CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include
CFLAGS:=-Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include
LDLIBS:=-lz

all: lguest
Expand Down
2 changes: 1 addition & 1 deletion trunk/Documentation/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#include "linux/virtio_console.h"
#include "linux/virtio_rng.h"
#include "linux/virtio_ring.h"
#include "asm-x86/bootparam.h"
#include "asm/bootparam.h"
/*L:110 We can ignore the 39 include files we need for this program, but I do
* want to draw attention to the use of kernel-style types.
*
Expand Down
2 changes: 0 additions & 2 deletions trunk/Documentation/scheduler/00-INDEX
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ sched-arch.txt
- CPU Scheduler implementation hints for architecture specific code.
sched-coding.txt
- reference for various scheduler-related methods in the O(1) scheduler.
sched-design.txt
- goals, design and implementation of the Linux O(1) scheduler.
sched-design-CFS.txt
- goals, design and implementation of the Complete Fair Scheduler.
sched-domains.txt
Expand Down
5 changes: 5 additions & 0 deletions trunk/MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ P: Philipp Zabel
M: philipp.zabel@gmail.com
S: Maintained

ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT
P: Michael Petchkovsky
M: mkpetch@internode.on.net
S: Maintained

ARM/TOSA MACHINE SUPPORT
P: Dmitry Baryshkov
M: dbaryshkov@gmail.com
Expand Down
19 changes: 14 additions & 5 deletions trunk/arch/arm/common/sharpsl_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@
/*
* Prototypes
*/
#ifdef CONFIG_PM
static int sharpsl_off_charge_battery(void);
static int sharpsl_check_battery_temp(void);
static int sharpsl_check_battery_voltage(void);
static int sharpsl_ac_check(void);
static int sharpsl_fatal_check(void);
#endif
static int sharpsl_check_battery_temp(void);
static int sharpsl_ac_check(void);
static int sharpsl_average_value(int ad);
static void sharpsl_average_clear(void);
static void sharpsl_charge_toggle(struct work_struct *private_);
Expand Down Expand Up @@ -424,6 +426,7 @@ static int sharpsl_check_battery_temp(void)
return 0;
}

#ifdef CONFIG_PM
static int sharpsl_check_battery_voltage(void)
{
int val, i, buff[5];
Expand Down Expand Up @@ -455,6 +458,7 @@ static int sharpsl_check_battery_voltage(void)

return 0;
}
#endif

static int sharpsl_ac_check(void)
{
Expand Down Expand Up @@ -586,8 +590,6 @@ static int corgi_pxa_pm_enter(suspend_state_t state)

return 0;
}
#endif


/*
* Check for fatal battery errors
Expand Down Expand Up @@ -738,7 +740,10 @@ static int sharpsl_off_charge_battery(void)
}
}
}

#else
#define sharpsl_pm_suspend NULL
#define sharpsl_pm_resume NULL
#endif

static ssize_t battery_percentage_show(struct device *dev, struct device_attribute *attr, char *buf)
{
Expand Down Expand Up @@ -768,10 +773,12 @@ static void sharpsl_apm_get_power_status(struct apm_power_info *info)
info->battery_life = sharpsl_pm.battstat.mainbat_percent;
}

#ifdef CONFIG_PM
static struct platform_suspend_ops sharpsl_pm_ops = {
.enter = corgi_pxa_pm_enter,
.valid = suspend_valid_only_mem,
};
#endif

static int __init sharpsl_pm_probe(struct platform_device *pdev)
{
Expand Down Expand Up @@ -802,7 +809,9 @@ static int __init sharpsl_pm_probe(struct platform_device *pdev)

apm_get_power_status = sharpsl_apm_get_power_status;

#ifdef CONFIG_PM
suspend_set_ops(&sharpsl_pm_ops);
#endif

mod_timer(&sharpsl_pm.ac_timer, jiffies + msecs_to_jiffies(250));

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-at91/board-afeb-9260v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ static struct at91_mmc_data __initdata afeb9260_mmc_data = {
static struct i2c_board_info __initdata afeb9260_i2c_devices[] = {
{
I2C_BOARD_INFO("fm3130", 0x68),
}, {
I2C_BOARD_INFO("24c64", 0x50),
},
};
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-at91/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#ifndef __ASM_ARCH_AT91RM9200_GPIO_H
#define __ASM_ARCH_AT91RM9200_GPIO_H

#include <linux/kernel.h>
#include <asm/irq.h>

#define PIN_BASE NR_AIC_IRQS
Expand Down Expand Up @@ -220,6 +221,7 @@ static inline int gpio_request(unsigned gpio, const char *label)

static inline void gpio_free(unsigned gpio)
{
might_sleep();
}

extern int gpio_direction_input(unsigned gpio);
Expand Down
6 changes: 4 additions & 2 deletions trunk/arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/serial_core.h>
#include <linux/device.h>
#include <linux/mm.h>
#include <linux/dma-mapping.h>
#include <linux/time.h>
#include <linux/timex.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -449,12 +450,13 @@ static struct resource ep93xx_ohci_resources[] = {
},
};


static struct platform_device ep93xx_ohci_device = {
.name = "ep93xx-ohci",
.id = -1,
.dev = {
.dma_mask = (void *)0xffffffff,
.coherent_dma_mask = 0xffffffff,
.dma_mask = &ep93xx_ohci_device.dev.coherent_dma_mask,
.coherent_dma_mask = DMA_BIT_MASK(32),
},
.num_resources = ARRAY_SIZE(ep93xx_ohci_resources),
.resource = ep93xx_ohci_resources,
Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-imx/include/mach/gpio.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#ifndef _IMX_GPIO_H

#include <linux/kernel.h>
#include <mach/imx-regs.h>

#define IMX_GPIO_ALLOC_MODE_NORMAL 0
Expand Down Expand Up @@ -63,6 +64,8 @@ static inline int gpio_request(unsigned gpio, const char *label)

static inline void gpio_free(unsigned gpio)
{
might_sleep();

imx_gpio_free(gpio);
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-ixp4xx/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#ifndef __ASM_ARCH_IXP4XX_GPIO_H
#define __ASM_ARCH_IXP4XX_GPIO_H

#include <linux/kernel.h>
#include <mach/hardware.h>

static inline int gpio_request(unsigned gpio, const char *label)
Expand All @@ -34,6 +35,8 @@ static inline int gpio_request(unsigned gpio, const char *label)

static inline void gpio_free(unsigned gpio)
{
might_sleep();

return;
}

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/arm/mach-ks8695/include/mach/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#ifndef __ASM_ARCH_GPIO_H_
#define __ASM_ARCH_GPIO_H_

#include <linux/kernel.h>

#define KS8695_GPIO_0 0
#define KS8695_GPIO_1 1
#define KS8695_GPIO_2 2
Expand Down Expand Up @@ -74,6 +76,7 @@ static inline int gpio_request(unsigned int pin, const char *label)

static inline void gpio_free(unsigned int pin)
{
might_sleep();
}

#endif
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-mx3/mx31ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <mach/imx-uart.h>
#include <mach/iomux-mx3.h>

#include "devices.h"

/*!
* @file mx31ads.c
*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-mx3/pcm037.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ static struct map_desc pcm037_io_desc[] __initdata = {
.virtual = AIPS1_BASE_ADDR_VIRT,
.pfn = __phys_to_pfn(AIPS1_BASE_ADDR),
.length = AIPS1_SIZE,
.type = MT_DEVICE
.type = MT_DEVICE_NONSHARED
}, {
.virtual = AIPS2_BASE_ADDR_VIRT,
.pfn = __phys_to_pfn(AIPS2_BASE_ADDR),
.length = AIPS2_SIZE,
.type = MT_DEVICE
.type = MT_DEVICE_NONSHARED
},
};

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-ns9xxx/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <linux/init.h>
#include <linux/spinlock.h>
Expand Down Expand Up @@ -63,6 +64,7 @@ EXPORT_SYMBOL(gpio_request);

void gpio_free(unsigned gpio)
{
might_sleep();
clear_bit(gpio, gpiores);
return;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/mach-orion5x/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ EXPORT_SYMBOL(gpio_request);

void gpio_free(unsigned pin)
{
might_sleep();

if (pin >= GPIO_MAX || !test_bit(pin, gpio_valid)) {
pr_debug("%s: invalid GPIO %d\n", __func__, pin);
return;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/arm/mach-pxa/corgi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
.read_devdata = corgipm_read_devdata,
.charger_wakeup = corgi_charger_wakeup,
.should_wakeup = corgi_should_wakeup,
#ifdef CONFIG_BACKLIGHT_CORGI
#if defined(CONFIG_LCD_CORGI)
.backlight_limit = corgi_lcd_limit_intensity,
#elif defined(CONFIG_BACKLIGHT_CORGI)
.backlight_limit = corgibl_limit_intensity,
#endif
.charge_on_volt = SHARPSL_CHARGE_ON_VOLT,
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-pxa/include/mach/sharpsl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ struct corgits_machinfo {
* SharpSL Backlight
*/
extern void corgibl_limit_intensity(int limit);
extern void corgi_lcd_limit_intensity(int limit);


/*
Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-pxa/spitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@ static void __init spitz_init_spi(void)
if (err)
goto err_free_2;

err = gpio_direction_output(SPITZ_GPIO_ADS7846_CS, 1);
if (err)
goto err_free_3;
err = gpio_direction_output(SPITZ_GPIO_LCDCON_CS, 1);
if (err)
goto err_free_3;
err = gpio_direction_output(SPITZ_GPIO_MAX1111_CS, 1);
if (err)
goto err_free_3;

if (machine_is_akita()) {
spitz_lcdcon_info.gpio_backlight_cont = AKITA_GPIO_BACKLIGHT_CONT;
spitz_lcdcon_info.gpio_backlight_on = AKITA_GPIO_BACKLIGHT_ON;
Expand All @@ -394,6 +404,8 @@ static void __init spitz_init_spi(void)
spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices));
return;

err_free_3:
gpio_free(SPITZ_GPIO_MAX1111_CS);
err_free_2:
gpio_free(SPITZ_GPIO_LCDCON_CS);
err_free_1:
Expand Down
Loading

0 comments on commit 065b921

Please sign in to comment.