forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'for-linus-4.1' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/rw/uml Pull UML updates from Richard Weinberger: - hostfs saw a face lifting - old/broken stuff was removed (SMP, HIGHMEM, SKAS3/4) - random cleanups and bug fixes * tag 'for-linus-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml: (26 commits) um: Print minimum physical memory requirement um: Move uml_postsetup in the init_thread stack um: add a kmsg_dumper x86, UML: fix integer overflow in ELF_ET_DYN_BASE um: hostfs: Reduce number of syscalls in readdir um: Remove broken highmem support um: Remove broken SMP support um: Remove SKAS3/4 support um: Remove ppc cruft um: Remove ia64 cruft um: Remove dead code from stacktrace hostfs: No need to box and later unbox the file mode hostfs: Use page_offset() hostfs: Set page flags in hostfs_readpage() correctly hostfs: Remove superfluous initializations in hostfs_open() hostfs: hostfs_open: Reset open flags upon each retry hostfs: Remove superfluous test in hostfs_open() hostfs: Report append flag in ->show_options() hostfs: Use __getname() in follow_link hostfs: Remove open coded strcpy() ...
- Loading branch information
Showing
59 changed files
with
323 additions
and
2,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,6 @@ | ||
#ifndef __UM_SMP_H | ||
#define __UM_SMP_H | ||
|
||
#ifdef CONFIG_SMP | ||
|
||
#include <linux/bitops.h> | ||
#include <asm/current.h> | ||
#include <linux/cpumask.h> | ||
|
||
#define raw_smp_processor_id() (current_thread->cpu) | ||
|
||
#define cpu_logical_map(n) (n) | ||
#define cpu_number_map(n) (n) | ||
extern int hard_smp_processor_id(void); | ||
#define NO_PROC_ID -1 | ||
|
||
extern int ncpus; | ||
|
||
|
||
static inline void smp_cpus_done(unsigned int maxcpus) | ||
{ | ||
} | ||
|
||
extern struct task_struct *idle_threads[NR_CPUS]; | ||
|
||
#else | ||
|
||
#define hard_smp_processor_id() 0 | ||
|
||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include <linux/kmsg_dump.h> | ||
#include <linux/console.h> | ||
#include <shared/init.h> | ||
#include <shared/kern.h> | ||
#include <os.h> | ||
|
||
static void kmsg_dumper_stdout(struct kmsg_dumper *dumper, | ||
enum kmsg_dump_reason reason) | ||
{ | ||
static char line[1024]; | ||
|
||
size_t len = 0; | ||
bool con_available = false; | ||
|
||
/* only dump kmsg when no console is available */ | ||
if (!console_trylock()) | ||
return; | ||
|
||
if (console_drivers != NULL) | ||
con_available = true; | ||
|
||
console_unlock(); | ||
|
||
if (con_available == true) | ||
return; | ||
|
||
printf("kmsg_dump:\n"); | ||
while (kmsg_dump_get_line(dumper, true, line, sizeof(line), &len)) { | ||
line[len] = '\0'; | ||
printf("%s", line); | ||
} | ||
} | ||
|
||
static struct kmsg_dumper kmsg_dumper = { | ||
.dump = kmsg_dumper_stdout | ||
}; | ||
|
||
int __init kmsg_dumper_stdout_init(void) | ||
{ | ||
return kmsg_dump_register(&kmsg_dumper); | ||
} | ||
|
||
__uml_postsetup(kmsg_dumper_stdout_init); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.