Changeset 9fc776c7 in mainline for kernel/generic/src/ipc/ipcrsc.c
- Timestamp:
- 2018-03-13T18:01:47Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df1cbb3
- Parents:
- b127e4af
- git-author:
- Jakub Jermar <jakub@…> (2017-12-07 12:14:09)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-13 18:01:47)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/ipc/ipcrsc.c
rb127e4af r9fc776c7 137 137 #include <mm/slab.h> 138 138 139 static bool phone_reclaim(kobject_t *kobj)140 {141 bool gc = false;142 143 mutex_lock(&kobj->phone->lock);144 if (kobj->phone->state == IPC_PHONE_HUNGUP &&145 atomic_get(&kobj->phone->active_calls) == 0)146 gc = true;147 mutex_unlock(&kobj->phone->lock);148 149 return gc;150 }151 152 139 static void phone_destroy(void *arg) 153 140 { … … 157 144 158 145 static kobject_ops_t phone_kobject_ops = { 159 .reclaim = phone_reclaim,160 146 .destroy = phone_destroy 161 147 };
Note:
See TracChangeset
for help on using the changeset viewer.