[SSI] openssi/kernel/fs/proc base.c,1.29,1.30
Roger Tsang <[email protected]> Mon, 25 Oct 2010 04:35:01 +0000
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/fs/proc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30241/fs/proc
Modified Files:
Tag: OPENSSI-FC
base.c
Log Message:
VPROC (#ifdef LOADLEVEL_TABLE_LIST):
- Fix missing memory barrier for pvp_loadlevel when writing to /proc/PID/loadlevel.
Index: base.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/proc/base.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- base.c 2 Feb 2010 04:35:52 -0000 1.29
+++ base.c 25 Oct 2010 04:34:58 -0000 1.30
@@ -3075,12 +3075,16 @@
return -EINVAL;
pvp = PVP(task->p_vproc);
+#ifdef LOADLEVEL_TABLE_LIST
+ set_mb(pvp->pvp_loadlevel, action);
+#else
/*
* Check to see if process is pinned...return if yes
*/
VPROC_LOCK_EXCL(task->p_vproc, "do_ssi_write");
pvp->pvp_loadlevel = action;
VPROC_UNLOCK_EXCL(task->p_vproc, "do_ssi_write");
+#endif
return count;
case PROC_TGID_PIN:
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev