uml: delete unused code

Get rid of a bunch of unused stuff -
	cpu_feature had no users
	linux_prog is little-used, so its declaration is moved to the
user for easy deletion when the whole file goes away
	a long-unused debugging aid in helper.c is gone

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Jeff Dike
2007-05-06 14:50:57 -07:00
committed by Linus Torvalds
parent 7a3e965abf
commit 11100b1dfb
7 changed files with 3 additions and 66 deletions

View File

@@ -79,29 +79,6 @@ static int find_cpuinfo_line(int fd, char *key, char *scratch, int len)
return(0);
}
int cpu_feature(char *what, char *buf, int len)
{
int fd, ret = 0;
fd = os_open_file("/proc/cpuinfo", of_read(OPENFLAGS()), 0);
if(fd < 0){
printk("Couldn't open /proc/cpuinfo, err = %d\n", -fd);
return(0);
}
if(!find_cpuinfo_line(fd, what, buf, len)){
printk("Couldn't find '%s' line in /proc/cpuinfo\n", what);
goto out_close;
}
token(fd, buf, len, '\n');
ret = 1;
out_close:
os_close_file(fd);
return(ret);
}
static int check_cpu_flag(char *feature, int *have_it)
{
char buf[MAXTOKEN], c;