Skip to content

Commit d9fd8a6

Browse files
rddunlapLinus Torvalds
authored andcommitted
[PATCH] kernel/cpuset.c: add kerneldoc, fix typos
Add kerneldoc to kernel/cpuset.c Fix cpuset typos in init/Kconfig Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Acked-by: Paul Jackson <pj@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 207a7ba commit d9fd8a6

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

‎init/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ config CPUSETS
231231
bool "Cpuset support"
232232
depends on SMP
233233
help
234-
This options will let you create and manage CPUSET's which
234+
This option will let you create and manage CPUSETs which
235235
allow dynamically partitioning a system into sets of CPUs and
236236
Memory Nodes and assigning tasks to run only within those sets.
237237
This is primarily useful on large SMP or NUMA systems.

‎kernel/cpuset.c‎

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,10 +1440,10 @@ void __init cpuset_init_smp(void)
14401440

14411441
/**
14421442
* cpuset_fork - attach newly forked task to its parents cpuset.
1443-
* @p: pointer to task_struct of forking parent process.
1443+
* @tsk: pointer to task_struct of forking parent process.
14441444
*
14451445
* Description: By default, on fork, a task inherits its
1446-
* parents cpuset. The pointer to the shared cpuset is
1446+
* parent's cpuset. The pointer to the shared cpuset is
14471447
* automatically copied in fork.c by dup_task_struct().
14481448
* This cpuset_fork() routine need only increment the usage
14491449
* counter in that cpuset.
@@ -1471,7 +1471,6 @@ void cpuset_fork(struct task_struct *tsk)
14711471
* by the cpuset_sem semaphore. If you don't hold cpuset_sem,
14721472
* then a zero cpuset use count is a license to any other task to
14731473
* nuke the cpuset immediately.
1474-
*
14751474
**/
14761475

14771476
void cpuset_exit(struct task_struct *tsk)
@@ -1521,7 +1520,9 @@ void cpuset_init_current_mems_allowed(void)
15211520
current->mems_allowed = NODE_MASK_ALL;
15221521
}
15231522

1524-
/*
1523+
/**
1524+
* cpuset_update_current_mems_allowed - update mems parameters to new values
1525+
*
15251526
* If the current tasks cpusets mems_allowed changed behind our backs,
15261527
* update current->mems_allowed and mems_generation to the new value.
15271528
* Do not call this routine if in_interrupt().
@@ -1540,13 +1541,20 @@ void cpuset_update_current_mems_allowed(void)
15401541
}
15411542
}
15421543

1544+
/**
1545+
* cpuset_restrict_to_mems_allowed - limit nodes to current mems_allowed
1546+
* @nodes: pointer to a node bitmap that is and-ed with mems_allowed
1547+
*/
15431548
void cpuset_restrict_to_mems_allowed(unsigned long *nodes)
15441549
{
15451550
bitmap_and(nodes, nodes, nodes_addr(current->mems_allowed),
15461551
MAX_NUMNODES);
15471552
}
15481553

1549-
/*
1554+
/**
1555+
* cpuset_zonelist_valid_mems_allowed - check zonelist vs. curremt mems_allowed
1556+
* @zl: the zonelist to be checked
1557+
*
15501558
* Are any of the nodes on zonelist zl allowed in current->mems_allowed?
15511559
*/
15521560
int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
@@ -1562,8 +1570,12 @@ int cpuset_zonelist_valid_mems_allowed(struct zonelist *zl)
15621570
return 0;
15631571
}
15641572

1565-
/*
1566-
* Is 'current' valid, and is zone z allowed in current->mems_allowed?
1573+
/**
1574+
* cpuset_zone_allowed - is zone z allowed in current->mems_allowed
1575+
* @z: zone in question
1576+
*
1577+
* Is zone z allowed in current->mems_allowed, or is
1578+
* the CPU in interrupt context? (zone is always allowed in this case)
15671579
*/
15681580
int cpuset_zone_allowed(struct zone *z)
15691581
{

0 commit comments

Comments
 (0)