am 982fd17a: Merge "Support full 32 bits for socket tags." into jb-dev

* commit '982fd17ac179787ca5f7a7ece03234629285850f':
  Support full 32 bits for socket tags.
This commit is contained in:
Jeff Sharkey 2012-05-02 19:39:44 -07:00 committed by Android Git Automerger
commit 8f1d4daffd

View file

@ -99,9 +99,7 @@ static int write_param(const char *param_path, const char *value) {
int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) {
char lineBuf[CTRL_MAX_INPUT_LEN];
int res;
/* Doing java-land a favor, enforcing "long" */
uint64_t kTag = ((uint64_t)tag << 32) & ~(1LLU<<63);
uint64_t kTag = ((uint64_t)tag << 32);
pthread_once(&resTrackInitDone, qtaguid_resTrack);