Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c2e2d4f7
Commit
c2e2d4f7
authored
Jun 03, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ldm.bkbits.net/linux-2.5-core
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
ed2110ce
6f79387d
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
727 additions
and
271 deletions
+727
-271
arch/i386/kernel/smp.c
arch/i386/kernel/smp.c
+0
-11
arch/ia64/kernel/smp.c
arch/ia64/kernel/smp.c
+0
-18
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+0
-11
drivers/ide/ide-proc.c
drivers/ide/ide-proc.c
+1
-35
drivers/ide/ide.c
drivers/ide/ide.c
+4
-2
fs/bio.c
fs/bio.c
+1
-1
fs/dquot.c
fs/dquot.c
+79
-13
fs/libfs.c
fs/libfs.c
+1
-1
include/asm-i386/smp.h
include/asm-i386/smp.h
+0
-1
include/asm-ia64/smp.h
include/asm-ia64/smp.h
+0
-2
include/asm-ppc64/smp.h
include/asm-ppc64/smp.h
+0
-1
include/asm-x86_64/smp.h
include/asm-x86_64/smp.h
+0
-1
include/linux/ide.h
include/linux/ide.h
+0
-1
include/linux/smp.h
include/linux/smp.h
+0
-1
kernel/exec_domain.c
kernel/exec_domain.c
+62
-20
kernel/resource.c
kernel/resource.c
+13
-2
kernel/sysctl.c
kernel/sysctl.c
+566
-150
No files found.
arch/i386/kernel/smp.c
View file @
c2e2d4f7
...
...
@@ -460,17 +460,6 @@ void smp_send_reschedule(int cpu)
send_IPI_mask
(
1
<<
cpu
,
RESCHEDULE_VECTOR
);
}
/*
* this function sends a reschedule IPI to all (other) CPUs.
* This should only be used if some 'global' task became runnable,
* such as a RT task, that must be handled now. The first CPU
* that manages to grab the task will run it.
*/
void
smp_send_reschedule_all
(
void
)
{
send_IPI_allbutself
(
RESCHEDULE_VECTOR
);
}
/*
* Structure and data for smp_call_function(). This is designed to minimise
* static memory requirements. It also looks cleaner.
...
...
arch/ia64/kernel/smp.c
View file @
c2e2d4f7
...
...
@@ -205,24 +205,6 @@ smp_send_reschedule (int cpu)
platform_send_ipi
(
cpu
,
IA64_IPI_RESCHEDULE
,
IA64_IPI_DM_INT
,
0
);
}
/*
* This function sends a reschedule IPI to all (other) CPUs. This should only be used if
* some 'global' task became runnable, such as a RT task, that must be handled now. The
* first CPU that manages to grab the task will run it.
*/
void
smp_send_reschedule_all
(
void
)
{
int
i
;
int
cpu
=
get_cpu
();
/* disable preemption */
for
(
i
=
0
;
i
<
NR_CPUS
;
i
++
)
if
(
cpu_online
(
i
)
&&
i
!=
cpu
)
smp_send_reschedule
(
i
);
put_cpu
();
}
void
smp_flush_tlb_all
(
void
)
{
...
...
arch/ppc64/kernel/smp.c
View file @
c2e2d4f7
...
...
@@ -392,17 +392,6 @@ void smp_send_reschedule(int cpu)
smp_message_pass
(
cpu
,
PPC_MSG_RESCHEDULE
,
0
,
0
);
}
/*
* this function sends a reschedule IPI to all (other) CPUs.
* This should only be used if some 'global' task became runnable,
* such as a RT task, that must be handled now. The first CPU
* that manages to grab the task will run it.
*/
void
smp_send_reschedule_all
(
void
)
{
smp_message_pass
(
MSG_ALL_BUT_SELF
,
PPC_MSG_RESCHEDULE
,
0
,
0
);
}
#ifdef CONFIG_XMON
void
smp_send_xmon_break
(
int
cpu
)
{
...
...
drivers/ide/ide-proc.c
View file @
c2e2d4f7
...
...
@@ -712,7 +712,6 @@ void create_proc_ide_drives(ide_hwif_t *hwif)
for
(
d
=
0
;
d
<
MAX_DRIVES
;
d
++
)
{
ide_drive_t
*
drive
=
&
hwif
->
drives
[
d
];
ide_driver_t
*
driver
=
drive
->
driver
;
if
(
!
drive
->
present
)
continue
;
...
...
@@ -720,13 +719,8 @@ void create_proc_ide_drives(ide_hwif_t *hwif)
continue
;
drive
->
proc
=
proc_mkdir
(
drive
->
name
,
parent
);
if
(
drive
->
proc
)
{
if
(
drive
->
proc
)
ide_add_proc_entries
(
drive
->
proc
,
generic_drive_entries
,
drive
);
if
(
driver
)
{
ide_add_proc_entries
(
drive
->
proc
,
generic_subdriver_entries
,
drive
);
ide_add_proc_entries
(
drive
->
proc
,
driver
->
proc
,
drive
);
}
}
sprintf
(
name
,
"ide%d/%s"
,
(
drive
->
name
[
2
]
-
'a'
)
/
2
,
drive
->
name
);
ent
=
proc_symlink
(
drive
->
name
,
proc_ide_root
,
name
);
if
(
!
ent
)
return
;
...
...
@@ -735,34 +729,6 @@ void create_proc_ide_drives(ide_hwif_t *hwif)
EXPORT_SYMBOL
(
create_proc_ide_drives
);
void
recreate_proc_ide_device
(
ide_hwif_t
*
hwif
,
ide_drive_t
*
drive
)
{
struct
proc_dir_entry
*
ent
;
struct
proc_dir_entry
*
parent
=
hwif
->
proc
;
char
name
[
64
];
if
(
drive
->
present
&&
!
drive
->
proc
)
{
drive
->
proc
=
proc_mkdir
(
drive
->
name
,
parent
);
if
(
drive
->
proc
)
ide_add_proc_entries
(
drive
->
proc
,
generic_drive_entries
,
drive
);
/*
* assume that we have these already, however, should test FIXME!
* if (driver) {
* ide_add_proc_entries(drive->proc, generic_subdriver_entries, drive);
* ide_add_proc_entries(drive->proc, driver->proc, drive);
* }
*
*/
sprintf
(
name
,
"ide%d/%s"
,
(
drive
->
name
[
2
]
-
'a'
)
/
2
,
drive
->
name
);
ent
=
proc_symlink
(
drive
->
name
,
proc_ide_root
,
name
);
if
(
!
ent
)
return
;
}
}
EXPORT_SYMBOL
(
recreate_proc_ide_device
);
void
destroy_proc_ide_device
(
ide_hwif_t
*
hwif
,
ide_drive_t
*
drive
)
{
ide_driver_t
*
driver
=
drive
->
driver
;
...
...
drivers/ide/ide.c
View file @
c2e2d4f7
...
...
@@ -2349,8 +2349,10 @@ int ide_register_subdriver (ide_drive_t *drive, ide_driver_t *driver, int versio
}
drive
->
suspend_reset
=
0
;
#ifdef CONFIG_PROC_FS
ide_add_proc_entries
(
drive
->
proc
,
generic_subdriver_entries
,
drive
);
ide_add_proc_entries
(
drive
->
proc
,
driver
->
proc
,
drive
);
if
(
drive
->
driver
!=
&
idedefault_driver
)
{
ide_add_proc_entries
(
drive
->
proc
,
generic_subdriver_entries
,
drive
);
ide_add_proc_entries
(
drive
->
proc
,
driver
->
proc
,
drive
);
}
#endif
return
0
;
}
...
...
fs/bio.c
View file @
c2e2d4f7
...
...
@@ -53,7 +53,7 @@ struct biovec_pool {
* unsigned short
*/
#define BV(x) {
x,
"biovec-" #x }
#define BV(x) {
.nr_vecs = x, .name =
"biovec-" #x }
static
struct
biovec_pool
bvec_array
[
BIOVEC_NR_POOLS
]
=
{
BV
(
1
),
BV
(
4
),
BV
(
16
),
BV
(
64
),
BV
(
128
),
BV
(
BIO_MAX_PAGES
),
};
...
...
fs/dquot.c
View file @
c2e2d4f7
...
...
@@ -1348,25 +1348,91 @@ struct quotactl_ops vfs_quotactl_ops = {
};
static
ctl_table
fs_dqstats_table
[]
=
{
{
FS_DQ_LOOKUPS
,
"lookups"
,
&
dqstats
.
lookups
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_DROPS
,
"drops"
,
&
dqstats
.
drops
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_READS
,
"reads"
,
&
dqstats
.
reads
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_WRITES
,
"writes"
,
&
dqstats
.
writes
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_CACHE_HITS
,
"cache_hits"
,
&
dqstats
.
cache_hits
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_ALLOCATED
,
"allocated_dquots"
,
&
dqstats
.
allocated_dquots
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_FREE
,
"free_dquots"
,
&
dqstats
.
free_dquots
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{
FS_DQ_SYNCS
,
"syncs"
,
&
dqstats
.
syncs
,
sizeof
(
int
),
0444
,
NULL
,
&
proc_dointvec
},
{},
{
.
ctl_name
=
FS_DQ_LOOKUPS
,
.
procname
=
"lookups"
,
.
data
=
&
dqstats
.
lookups
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_DROPS
,
.
procname
=
"drops"
,
.
data
=
&
dqstats
.
drops
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_READS
,
.
procname
=
"reads"
,
.
data
=
&
dqstats
.
reads
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_WRITES
,
.
procname
=
"writes"
,
.
data
=
&
dqstats
.
writes
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_CACHE_HITS
,
.
procname
=
"cache_hits"
,
.
data
=
&
dqstats
.
cache_hits
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_ALLOCATED
,
.
procname
=
"allocated_dquots"
,
.
data
=
&
dqstats
.
allocated_dquots
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_FREE
,
.
procname
=
"free_dquots"
,
.
data
=
&
dqstats
.
free_dquots
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
FS_DQ_SYNCS
,
.
procname
=
"syncs"
,
.
data
=
&
dqstats
.
syncs
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
0
},
};
static
ctl_table
fs_table
[]
=
{
{
FS_DQSTATS
,
"quota"
,
NULL
,
0
,
0555
,
fs_dqstats_table
},
{},
{
.
ctl_name
=
FS_DQSTATS
,
.
procname
=
"quota"
,
.
mode
=
0555
,
.
child
=
fs_dqstats_table
,
},
{
.
ctl_name
=
0
},
};
static
ctl_table
sys_table
[]
=
{
{
CTL_FS
,
"fs"
,
NULL
,
0
,
0555
,
fs_table
},
{},
{
.
ctl_name
=
CTL_FS
,
.
procname
=
"fs"
,
.
mode
=
0555
,
.
child
=
fs_table
,
},
{
.
ctl_name
=
0
},
};
/* SLAB cache for dquot structures */
...
...
fs/libfs.c
View file @
c2e2d4f7
...
...
@@ -336,7 +336,7 @@ int simple_commit_write(struct file *file, struct page *page,
int
simple_fill_super
(
struct
super_block
*
s
,
int
magic
,
struct
tree_descr
*
files
)
{
static
struct
super_operations
s_ops
=
{
statfs
:
simple_statfs
};
static
struct
super_operations
s_ops
=
{
.
statfs
=
simple_statfs
};
struct
inode
*
inode
;
struct
dentry
*
root
;
struct
dentry
*
dentry
;
...
...
include/asm-i386/smp.h
View file @
c2e2d4f7
...
...
@@ -41,7 +41,6 @@ extern int cpu_sibling_map[];
extern
void
smp_flush_tlb
(
void
);
extern
void
smp_message_irq
(
int
cpl
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
void
smp_send_reschedule
(
int
cpu
);
extern
void
smp_send_reschedule_all
(
void
);
extern
void
smp_invalidate_rcv
(
void
);
/* Process an NMI */
extern
void
(
*
mtrr_hook
)
(
void
);
extern
void
zap_low_mappings
(
void
);
...
...
include/asm-ia64/smp.h
View file @
c2e2d4f7
...
...
@@ -136,8 +136,6 @@ extern void smp_do_timer (struct pt_regs *regs);
extern
int
smp_call_function_single
(
int
cpuid
,
void
(
*
func
)
(
void
*
info
),
void
*
info
,
int
retry
,
int
wait
);
extern
void
smp_send_reschedule
(
int
cpu
);
extern
void
smp_send_reschedule_all
(
void
);
#endif
/* CONFIG_SMP */
#endif
/* _ASM_IA64_SMP_H */
include/asm-ppc64/smp.h
View file @
c2e2d4f7
...
...
@@ -34,7 +34,6 @@ extern void smp_send_tlb_invalidate(int);
extern
void
smp_send_xmon_break
(
int
cpu
);
struct
pt_regs
;
extern
void
smp_message_recv
(
int
,
struct
pt_regs
*
);
extern
void
smp_send_reschedule_all
(
void
);
#define NO_PROC_ID 0xFF
/* No processor magic marker */
...
...
include/asm-x86_64/smp.h
View file @
c2e2d4f7
...
...
@@ -42,7 +42,6 @@ extern int pic_mode;
extern
void
smp_flush_tlb
(
void
);
extern
void
smp_message_irq
(
int
cpl
,
void
*
dev_id
,
struct
pt_regs
*
regs
);
extern
void
smp_send_reschedule
(
int
cpu
);
extern
void
smp_send_reschedule_all
(
void
);
extern
void
smp_invalidate_rcv
(
void
);
/* Process an NMI */
extern
void
(
*
mtrr_hook
)
(
void
);
extern
void
zap_low_mappings
(
void
);
...
...
include/linux/ide.h
View file @
c2e2d4f7
...
...
@@ -1115,7 +1115,6 @@ typedef struct {
#ifdef CONFIG_PROC_FS
extern
void
proc_ide_create
(
void
);
extern
void
proc_ide_destroy
(
void
);
extern
void
recreate_proc_ide_device
(
ide_hwif_t
*
,
ide_drive_t
*
);
extern
void
destroy_proc_ide_device
(
ide_hwif_t
*
,
ide_drive_t
*
);
extern
void
destroy_proc_ide_drives
(
ide_hwif_t
*
);
extern
void
create_proc_ide_interfaces
(
void
);
...
...
include/linux/smp.h
View file @
c2e2d4f7
...
...
@@ -110,7 +110,6 @@ void smp_prepare_boot_cpu(void);
#define smp_call_function(func,info,retry,wait) ({ 0; })
#define on_each_cpu(func,info,retry,wait) ({ func(info); 0; })
static
inline
void
smp_send_reschedule
(
int
cpu
)
{
}
static
inline
void
smp_send_reschedule_all
(
void
)
{
}
#define cpu_online_map 1
#define cpu_online(cpu) ({ BUG_ON((cpu) != 0); 1; })
#define num_online_cpus() 1
...
...
kernel/exec_domain.c
View file @
c2e2d4f7
...
...
@@ -32,11 +32,12 @@ static u_long ident_map[32] = {
};
struct
exec_domain
default_exec_domain
=
{
"Linux"
,
/* name */
default_handler
,
/* lcall7 causes a seg fault. */
0
,
0
,
/* PER_LINUX personality. */
ident_map
,
/* Identity map signals. */
ident_map
,
/* - both ways. */
.
name
=
"Linux"
,
/* name */
.
handler
=
default_handler
,
/* lcall7 causes a seg fault. */
.
pers_low
=
0
,
/* PER_LINUX personality. */
.
pers_high
=
0
,
/* PER_LINUX personality. */
.
signal_map
=
ident_map
,
/* Identity map signals. */
.
signal_invmap
=
ident_map
,
/* - both ways. */
};
...
...
@@ -247,24 +248,65 @@ u_int abi_traceflg;
int
abi_fake_utsname
;
static
struct
ctl_table
abi_table
[]
=
{
{
ABI_DEFHANDLER_COFF
,
"defhandler_coff"
,
&
abi_defhandler_coff
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_doulongvec_minmax
},
{
ABI_DEFHANDLER_ELF
,
"defhandler_elf"
,
&
abi_defhandler_elf
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_doulongvec_minmax
},
{
ABI_DEFHANDLER_LCALL7
,
"defhandler_lcall7"
,
&
abi_defhandler_lcall7
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_doulongvec_minmax
},
{
ABI_DEFHANDLER_LIBCSO
,
"defhandler_libcso"
,
&
abi_defhandler_libcso
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_doulongvec_minmax
},
{
ABI_TRACE
,
"trace"
,
&
abi_traceflg
,
sizeof
(
u_int
),
0644
,
NULL
,
&
proc_dointvec
},
{
ABI_FAKE_UTSNAME
,
"fake_utsname"
,
&
abi_fake_utsname
,
sizeof
(
int
),
0644
,
NULL
,
&
proc_dointvec
},
{
0
}
{
.
ctl_name
=
ABI_DEFHANDLER_COFF
,
.
procname
=
"defhandler_coff"
,
.
data
=
&
abi_defhandler_coff
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_doulongvec_minmax
,
},
{
.
ctl_name
=
ABI_DEFHANDLER_ELF
,
.
procname
=
"defhandler_elf"
,
.
data
=
&
abi_defhandler_elf
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_doulongvec_minmax
,
},
{
.
ctl_name
=
ABI_DEFHANDLER_LCALL7
,
.
procname
=
"defhandler_lcall7"
,
.
data
=
&
abi_defhandler_lcall7
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_doulongvec_minmax
,
},
{
.
ctl_name
=
ABI_DEFHANDLER_LIBCSO
,
.
procname
=
"defhandler_libcso"
,
.
data
=
&
abi_defhandler_libcso
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_doulongvec_minmax
,
},
{
.
ctl_name
=
ABI_TRACE
,
.
procname
=
"trace"
,
.
data
=
&
abi_traceflg
,
.
maxlen
=
sizeof
(
u_int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
ABI_FAKE_UTSNAME
,
.
procname
=
"fake_utsname"
,
.
data
=
&
abi_fake_utsname
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
0
}
};
static
struct
ctl_table
abi_root_table
[]
=
{
{
CTL_ABI
,
"abi"
,
NULL
,
0
,
0555
,
abi_table
},
{
0
}
{
.
ctl_name
=
CTL_ABI
,
.
procname
=
"abi"
,
.
mode
=
0555
,
.
child
=
abi_table
,
},
{
.
ctl_name
=
0
}
};
static
int
__init
...
...
kernel/resource.c
View file @
c2e2d4f7
...
...
@@ -20,8 +20,19 @@
#include <asm/io.h>
struct
resource
ioport_resource
=
{
"PCI IO"
,
0x0000
,
IO_SPACE_LIMIT
,
IORESOURCE_IO
};
struct
resource
iomem_resource
=
{
"PCI mem"
,
0UL
,
~
0UL
,
IORESOURCE_MEM
};
struct
resource
ioport_resource
=
{
.
name
=
"PCI IO"
,
.
start
=
0x0000
,
.
end
=
IO_SPACE_LIMIT
,
.
flags
=
IORESOURCE_IO
,
};
struct
resource
iomem_resource
=
{
.
name
=
"PCI mem"
,
.
start
=
0UL
,
.
end
=
~
0UL
,
.
flags
=
IORESOURCE_MEM
,
};
static
rwlock_t
resource_lock
=
RW_LOCK_UNLOCKED
;
...
...
kernel/sysctl.c
View file @
c2e2d4f7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment