Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65055
b: refs/heads/master
c: 6883599
h: refs/heads/master
i:
  65053: 3fd8013
  65051: 280b976
  65047: 1831d97
  65039: 408bf1e
  65023: d28d8c3
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Sep 19, 2007
1 parent 603f1d5 commit ffafd8d
Show file tree
Hide file tree
Showing 49 changed files with 235 additions and 531 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: c39c06b96175a75e63da38dc3557a69e18a5f8ac
refs/heads/master: 68835999435e01311ab57f5556169ad2966b6828
20 changes: 10 additions & 10 deletions trunk/Documentation/kernel-parameters.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Kernel Parameters
~~~~~~~~~~~~~~~~~
Kernel Parameters
~~~~~~~~~~~~~~~~~

The following is a consolidated list of the kernel parameters as implemented
(mostly) by the __setup() macro and sorted into English Dictionary order
Expand Down Expand Up @@ -1462,7 +1462,7 @@ and is between 256 and 4096 characters. It is defined in the file

reboot= [BUGS=X86-32,BUGS=ARM,BUGS=IA-64] Rebooting mode
Format: <reboot_mode>[,<reboot_mode2>[,...]]
See arch/*/kernel/reboot.c or arch/*/kernel/process.c
See arch/*/kernel/reboot.c or arch/*/kernel/process.c

reserve= [KNL,BUGS] Force the kernel to ignore some iomem area

Expand Down Expand Up @@ -1550,12 +1550,12 @@ and is between 256 and 4096 characters. It is defined in the file

selinux_compat_net =
[SELINUX] Set initial selinux_compat_net flag value.
Format: { "0" | "1" }
0 -- use new secmark-based packet controls
1 -- use legacy packet controls
Default value is 0 (preferred).
Value can be changed at runtime via
/selinux/compat_net.
Format: { "0" | "1" }
0 -- use new secmark-based packet controls
1 -- use legacy packet controls
Default value is 0 (preferred).
Value can be changed at runtime via
/selinux/compat_net.

serialnumber [BUGS=X86-32]

Expand Down Expand Up @@ -1954,7 +1954,7 @@ and is between 256 and 4096 characters. It is defined in the file
norandmaps Don't use address space randomization
Equivalent to echo 0 > /proc/sys/kernel/randomize_va_space

unwind_debug=N N > 0 will enable dwarf2 unwinder debugging
unwind_debug=N N > 0 will enable dwarf2 unwinder debugging
This is useful to get more information why
you got a "dwarf2 unwinder stuck"

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/i386/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,8 @@ static unsigned long xen_read_cr2_direct(void)

static void xen_write_cr4(unsigned long cr4)
{
/* Just ignore cr4 changes; Xen doesn't allow us to do
anything anyway. */
/* never allow TSC to be disabled */
native_write_cr4(cr4 & ~X86_CR4_TSD);
}

static unsigned long xen_read_cr3(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/dec/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ EXPORT_SYMBOL(dec_kn_slot_size);

int dec_tc_bus;

spinlock_t ioasic_ssr_lock;
DEFINE_SPINLOCK(ioasic_ssr_lock);

volatile u32 *ioasic_base;

Expand Down
8 changes: 3 additions & 5 deletions trunk/arch/powerpc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static void snapshot_tb_and_purr(void *data)
struct cpu_purr_data *p = &__get_cpu_var(cpu_purr_data);

local_irq_save(flags);
p->tb = get_tb_or_rtc();
p->tb = mftb();
p->purr = mfspr(SPRN_PURR);
wmb();
p->initialized = 1;
Expand Down Expand Up @@ -317,7 +317,7 @@ static void snapshot_purr(void)
*/
void snapshot_timebase(void)
{
__get_cpu_var(last_jiffy) = get_tb_or_rtc();
__get_cpu_var(last_jiffy) = get_tb();
snapshot_purr();
}

Expand Down Expand Up @@ -684,8 +684,6 @@ void timer_interrupt(struct pt_regs * regs)

write_seqlock(&xtime_lock);
tb_next_jiffy = tb_last_jiffy + tb_ticks_per_jiffy;
if (__USE_RTC() && tb_next_jiffy >= 1000000000)
tb_next_jiffy -= 1000000000;
if (per_cpu(last_jiffy, cpu) >= tb_next_jiffy) {
tb_last_jiffy = tb_next_jiffy;
do_timer(1);
Expand Down Expand Up @@ -979,7 +977,7 @@ void __init time_init(void)
tb_to_ns_scale = scale;
tb_to_ns_shift = shift;
/* Save the current timebase to pretty up CONFIG_PRINTK_TIME */
boot_tb = get_tb_or_rtc();
boot_tb = get_tb();

tm = get_boot_time();

Expand Down
12 changes: 0 additions & 12 deletions trunk/arch/powerpc/kernel/vdso.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,6 @@ static struct vdso_patch_def vdso_patches[] = {
CPU_FTR_USE_TB, 0,
"__kernel_gettimeofday", NULL
},
{
CPU_FTR_USE_TB, 0,
"__kernel_clock_gettime", NULL
},
{
CPU_FTR_USE_TB, 0,
"__kernel_clock_getres", NULL
},
{
CPU_FTR_USE_TB, 0,
"__kernel_get_tbfreq", NULL
},
};

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/platforms/cell/spufs/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ static struct spu *find_victim(struct spu_context *ctx)
list_for_each_entry(spu, &cbe_spu_info[node].spus, cbe_list) {
struct spu_context *tmp = spu->ctx;

if (tmp && tmp->prio > ctx->prio &&
if (tmp->prio > ctx->prio &&
(!victim || tmp->prio > victim->prio))
victim = spu->ctx;
}
Expand Down Expand Up @@ -611,9 +611,9 @@ static struct spu *find_victim(struct spu_context *ctx)

mutex_lock(&cbe_spu_info[node].list_mutex);
cbe_spu_info[node].nr_active--;
spu_unbind_context(spu, victim);
mutex_unlock(&cbe_spu_info[node].list_mutex);

spu_unbind_context(spu, victim);
victim->stats.invol_ctx_switch++;
spu->stats.invol_ctx_switch++;
mutex_unlock(&victim->state_mutex);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/include/kern_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extern void sigio_handler(int sig, union uml_pt_regs *regs);

extern void copy_sc(union uml_pt_regs *regs, void *from);

extern unsigned long to_irq_stack(unsigned long *mask_out);
unsigned long to_irq_stack(int sig, unsigned long *mask_out);
unsigned long from_irq_stack(int nested);

#endif
7 changes: 3 additions & 4 deletions trunk/arch/um/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ int init_aio_irq(int irq, char *name, irq_handler_t handler)

static unsigned long pending_mask;

unsigned long to_irq_stack(unsigned long *mask_out)
unsigned long to_irq_stack(int sig, unsigned long *mask_out)
{
struct thread_info *ti;
unsigned long mask, old;
int nested;

mask = xchg(&pending_mask, *mask_out);
mask = xchg(&pending_mask, 1 << sig);
if(mask != 0){
/* If any interrupts come in at this point, we want to
* make sure that their bits aren't lost by our
Expand All @@ -534,7 +534,7 @@ unsigned long to_irq_stack(unsigned long *mask_out)
* and pending_mask contains a bit for each interrupt
* that came in.
*/
old = *mask_out;
old = 1 << sig;
do {
old |= mask;
mask = xchg(&pending_mask, old);
Expand All @@ -550,7 +550,6 @@ unsigned long to_irq_stack(unsigned long *mask_out)

task = cpu_tasks[ti->cpu].task;
tti = task_thread_info(task);

*ti = *tti;
ti->real_thread = tti;
task->stack = ti;
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/um/os-Linux/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,7 @@ int os_file_size(char *file, unsigned long long *size_out)
}

if(S_ISBLK(buf.ust_mode)){
int fd;
long blocks;
int fd, blocks;

fd = os_open_file(file, of_read(OPENFLAGS()), 0);
if(fd < 0){
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/um/os-Linux/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void (*handlers[_NSIG])(int sig, struct sigcontext *sc);

void handle_signal(int sig, struct sigcontext *sc)
{
unsigned long pending = 1UL << sig;
unsigned long pending = 0;

do {
int nested, bail;
Expand All @@ -134,7 +134,7 @@ void handle_signal(int sig, struct sigcontext *sc)
* have to return, and the upper handler will deal
* with this interrupt.
*/
bail = to_irq_stack(&pending);
bail = to_irq_stack(sig, &pending);
if(bail)
return;

Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/x86_64/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,6 @@ asmlinkage void __kprobes do_page_fault(struct pt_regs *regs,
if (unlikely(in_atomic() || !mm))
goto bad_area_nosemaphore;

/*
* User-mode registers count as a user access even for any
* potential system fault or CPU buglet.
*/
if (user_mode_vm(regs))
error_code |= PF_USER;

again:
/* When running in the kernel we expect faults to occur only to
* addresses in user space. All other faults represent errors in the
Expand Down
29 changes: 6 additions & 23 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,38 +679,21 @@ static int device_add_class_symlinks(struct device *dev)
goto out_subsys;
}
if (dev->parent) {
error = sysfs_create_link(&dev->kobj, &dev->parent->kobj,
"device");
if (error)
goto out_busid;
#ifdef CONFIG_SYSFS_DEPRECATED
{
struct device *parent = dev->parent;
char *class_name;

/*
* In old sysfs stacked class devices had 'device'
* link pointing to real device instead of parent
*/
while (parent->class && !parent->bus && parent->parent)
parent = parent->parent;

error = sysfs_create_link(&dev->kobj,
&parent->kobj,
"device");
if (error)
goto out_busid;

class_name = make_class_name(dev->class->name,
&dev->kobj);
char * class_name = make_class_name(dev->class->name,
&dev->kobj);
if (class_name)
error = sysfs_create_link(&dev->parent->kobj,
&dev->kobj, class_name);
kfree(class_name);
if (error)
goto out_device;
}
#else
error = sysfs_create_link(&dev->kobj, &dev->parent->kobj,
"device");
if (error)
goto out_busid;
#endif
}
return 0;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/block/DAC960.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <linux/genhd.h>
#include <linux/hdreg.h>
#include <linux/blkpg.h>
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/mm.h>
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/char/agp/agp.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ struct agp_bridge_data {
#define I830_GMCH_MEM_MASK 0x1
#define I830_GMCH_MEM_64M 0x1
#define I830_GMCH_MEM_128M 0
#define I830_GMCH_GMS_MASK 0x70
#define I830_GMCH_GMS_MASK 0xF0
#define I830_GMCH_GMS_DISABLED 0x00
#define I830_GMCH_GMS_LOCAL 0x10
#define I830_GMCH_GMS_STOLEN_512 0x20
Expand All @@ -190,7 +190,6 @@ struct agp_bridge_data {
#define INTEL_I830_ERRSTS 0x92

/* Intel 855GM/852GM registers */
#define I855_GMCH_GMS_MASK 0xF0
#define I855_GMCH_GMS_STOLEN_0M 0x0
#define I855_GMCH_GMS_STOLEN_1M (0x1 << 4)
#define I855_GMCH_GMS_STOLEN_4M (0x2 << 4)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ static void intel_i830_init_gtt_entries(void)
*/
if (IS_G33)
size = 0;
switch (gmch_ctrl & I855_GMCH_GMS_MASK) {
switch (gmch_ctrl & I830_GMCH_GMS_MASK) {
case I855_GMCH_GMS_STOLEN_1M:
gtt_entries = MB(1) - KB(size);
break;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/char/ipmi/ipmi_si_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2215,8 +2215,7 @@ static int ipmi_pci_resume(struct pci_dev *pdev)

static struct pci_device_id ipmi_pci_devices[] = {
{ PCI_DEVICE(PCI_HP_VENDOR_ID, PCI_MMC_DEVICE_ID) },
{ PCI_DEVICE_CLASS(PCI_ERMC_CLASSCODE, PCI_ERMC_CLASSCODE_MASK) },
{ 0, }
{ PCI_DEVICE_CLASS(PCI_ERMC_CLASSCODE, PCI_ERMC_CLASSCODE_MASK) }
};
MODULE_DEVICE_TABLE(pci, ipmi_pci_devices);

Expand Down
Loading

0 comments on commit ffafd8d

Please sign in to comment.