You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
*/
|
||||
irq_desc_t irq_desc[NR_IRQS] __cacheline_aligned = {
|
||||
[0 ... NR_IRQS-1] = {
|
||||
.status = IRQ_DISABLED,
|
||||
.handler = &no_irq_type,
|
||||
.lock = SPIN_LOCK_UNLOCKED
|
||||
}
|
||||
|
||||
+3
-3
@@ -156,14 +156,14 @@ static int enter_state(suspend_state_t state)
|
||||
goto Unlock;
|
||||
}
|
||||
|
||||
pr_debug("PM: Preparing system for suspend\n");
|
||||
pr_debug("PM: Preparing system for %s sleep\n", pm_states[state]);
|
||||
if ((error = suspend_prepare(state)))
|
||||
goto Unlock;
|
||||
|
||||
pr_debug("PM: Entering state.\n");
|
||||
pr_debug("PM: Entering %s sleep\n", pm_states[state]);
|
||||
error = suspend_enter(state);
|
||||
|
||||
pr_debug("PM: Finishing up.\n");
|
||||
pr_debug("PM: Finishing wakeup.\n");
|
||||
suspend_finish(state);
|
||||
Unlock:
|
||||
up(&pm_sem);
|
||||
|
||||
+36
-36
@@ -160,42 +160,6 @@ static int __init console_setup(char *str)
|
||||
|
||||
__setup("console=", console_setup);
|
||||
|
||||
/**
|
||||
* add_preferred_console - add a device to the list of preferred consoles.
|
||||
*
|
||||
* The last preferred console added will be used for kernel messages
|
||||
* and stdin/out/err for init. Normally this is used by console_setup
|
||||
* above to handle user-supplied console arguments; however it can also
|
||||
* be used by arch-specific code either to override the user or more
|
||||
* commonly to provide a default console (ie from PROM variables) when
|
||||
* the user has not supplied one.
|
||||
*/
|
||||
int __init add_preferred_console(char *name, int idx, char *options)
|
||||
{
|
||||
struct console_cmdline *c;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* See if this tty is not yet registered, and
|
||||
* if we have a slot free.
|
||||
*/
|
||||
for(i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; i++)
|
||||
if (strcmp(console_cmdline[i].name, name) == 0 &&
|
||||
console_cmdline[i].index == idx) {
|
||||
selected_console = i;
|
||||
return 0;
|
||||
}
|
||||
if (i == MAX_CMDLINECONSOLES)
|
||||
return -E2BIG;
|
||||
selected_console = i;
|
||||
c = &console_cmdline[i];
|
||||
memcpy(c->name, name, sizeof(c->name));
|
||||
c->name[sizeof(c->name) - 1] = 0;
|
||||
c->options = options;
|
||||
c->index = idx;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int __init log_buf_len_setup(char *str)
|
||||
{
|
||||
unsigned long size = memparse(str, &str);
|
||||
@@ -670,6 +634,42 @@ static void call_console_drivers(unsigned long start, unsigned long end) {}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* add_preferred_console - add a device to the list of preferred consoles.
|
||||
*
|
||||
* The last preferred console added will be used for kernel messages
|
||||
* and stdin/out/err for init. Normally this is used by console_setup
|
||||
* above to handle user-supplied console arguments; however it can also
|
||||
* be used by arch-specific code either to override the user or more
|
||||
* commonly to provide a default console (ie from PROM variables) when
|
||||
* the user has not supplied one.
|
||||
*/
|
||||
int __init add_preferred_console(char *name, int idx, char *options)
|
||||
{
|
||||
struct console_cmdline *c;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* See if this tty is not yet registered, and
|
||||
* if we have a slot free.
|
||||
*/
|
||||
for(i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; i++)
|
||||
if (strcmp(console_cmdline[i].name, name) == 0 &&
|
||||
console_cmdline[i].index == idx) {
|
||||
selected_console = i;
|
||||
return 0;
|
||||
}
|
||||
if (i == MAX_CMDLINECONSOLES)
|
||||
return -E2BIG;
|
||||
selected_console = i;
|
||||
c = &console_cmdline[i];
|
||||
memcpy(c->name, name, sizeof(c->name));
|
||||
c->name[sizeof(c->name) - 1] = 0;
|
||||
c->options = options;
|
||||
c->index = idx;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* acquire_console_sem - lock the console system for exclusive use.
|
||||
*
|
||||
|
||||
+10
-6
@@ -49,15 +49,19 @@ static DECLARE_MUTEX(profile_flip_mutex);
|
||||
|
||||
static int __init profile_setup(char * str)
|
||||
{
|
||||
static char __initdata schedstr[] = "schedule";
|
||||
int par;
|
||||
|
||||
if (!strncmp(str, "schedule", 8)) {
|
||||
if (!strncmp(str, schedstr, strlen(schedstr))) {
|
||||
prof_on = SCHED_PROFILING;
|
||||
printk(KERN_INFO "kernel schedule profiling enabled\n");
|
||||
if (str[7] == ',')
|
||||
str += 8;
|
||||
}
|
||||
if (get_option(&str,&par)) {
|
||||
if (str[strlen(schedstr)] == ',')
|
||||
str += strlen(schedstr) + 1;
|
||||
if (get_option(&str, &par))
|
||||
prof_shift = par;
|
||||
printk(KERN_INFO
|
||||
"kernel schedule profiling enabled (shift: %ld)\n",
|
||||
prof_shift);
|
||||
} else if (get_option(&str, &par)) {
|
||||
prof_shift = par;
|
||||
prof_on = CPU_PROFILING;
|
||||
printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n",
|
||||
|
||||
Reference in New Issue
Block a user